Skip to contentSkip to conversation

PowerPC 44x: small warp-nand fix

PATCH In review Valentine Barshak 3 participants 3 messages Jun 5, 2008 – Jun 6, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PowerPC 44x: small warp-nand fix

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.

---
 arch/powerpc/platforms/44x/warp-nand.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/platforms/44x/warp-nand.c +1 -2
@@ -86,8 +86,7 @@ static struct platform_nand_chip warp_na
 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,
#2 lore raw
Quoted 9 lines · On Thu, 5 Jun 2008 16:28:18 +0200 "Stefan Roese" <[email protected]> wrote:
Quoted 6 lines · Valentine Barshak

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.

Cheers,
Sean