powerpc/4xx: Fix resource issue in warp-nand.c
authorValentine Barshak <vbarshak@ru.mvista.com>
Thu, 5 Jun 2008 13:36:38 +0000 (23:36 +1000)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Wed, 11 Jun 2008 12:06:25 +0000 (08:06 -0400)
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>
arch/powerpc/platforms/44x/warp-nand.c

index d293c702e7347df2e4d99f9c14136d02d467a61b..7bec2815771a0f74a82f58aebaefc0643189832b 100644 (file)
@@ -94,8 +94,7 @@ static struct platform_nand_chip warp_nand_chip0 = {
 static struct platform_device warp_nand_device = {
        .name = "ndfc-chip",
        .id = 0,
-       .num_resources = 1,
-       .resource = &warp_ndfc,
+       .num_resources = 0,
        .dev = {
                .platform_data = &warp_nand_chip0,
                .parent = &warp_ndfc_device.dev,