Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/4xx: Fix resource issue in warp-nand.c

The "ndfc-chip" device doesn't need any resources. All resources
are handled by the "ndfc-nand" device. Registering the same memory
resource twice causes "cat /proc/iomem" to go into an infinite loop
displaying NDFC memory addresses.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Sean MacLennan <smaclennan@pikatech.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>

authored by

Valentine Barshak and committed by
Josh Boyer
156cea23 887942d7

+1 -2
+1 -2
arch/powerpc/platforms/44x/warp-nand.c
··· 94 94 static struct platform_device warp_nand_device = { 95 95 .name = "ndfc-chip", 96 96 .id = 0, 97 - .num_resources = 1, 98 - .resource = &warp_ndfc, 97 + .num_resources = 0, 99 98 .dev = { 100 99 .platform_data = &warp_nand_chip0, 101 100 .parent = &warp_ndfc_device.dev,