Skip to content

Commit

Permalink
powerpc/4xx: Fix resource issue in warp-nand.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Valentine Barshak authored and Josh Boyer committed Jun 11, 2008
1 parent 887942d commit 156cea2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/powerpc/platforms/44x/warp-nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 156cea2

Please sign in to comment.