Skip to contentSkip to conversation

mfd: omap-ush-host: Fix build breakage

PATCH In review Anatolij Gustschin 3 participants 5 messages Apr 22, 2012 – Apr 28, 2012

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

PATCH 1/1 mfd: omap-ush-host: Fix build breakage

Commit 1fcb57d0f6e1150003d222051aaaf4bc4a9ccc94 (ARM: OMAP3: USB: Fix the EHCI ULPI PHY reset issue) removed #include <linux/gpio.h> which indirectly includes 'plat/cpu.h'. This caused build breakage:

drivers/mfd/omap-usb-host.c: In function 'omap_usbhs_init':
drivers/mfd/omap-usb-host.c:525:3: error: implicit declaration of function 'cpu_is_omap3430' drivers/mfd/omap-usb-host.c:525:3: error: implicit declaration of function 'omap_rev' drivers/mfd/omap-usb-host.c:525:43: error: 'OMAP3430_REV_ES2_1' undeclared (first use in this function)

Include <plat/cpu.h> to fix it.

---
 drivers/mfd/omap-usb-host.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/omap-usb-host.c +1 -0
index c8aae66..7e96bb2 100644
@@ -25,6 +25,7 @@
 #include <linux/clk.h>
 #include <linux/dma-mapping.h>
 #include <linux/spinlock.h>
+#include <plat/cpu.h>
 #include <plat/usb.h>
 #include <linux/pm_runtime.h>
 
Signature · 1 line
1.7.1
#1 lore raw
Quoted 30 lines · Anatolij Gustschin

Commit 1fcb57d0f6e1150003d222051aaaf4bc4a9ccc94 (ARM: OMAP3: USB: Fix the EHCI ULPI PHY reset issue) removed #include <linux/gpio.h> which indirectly includes 'plat/cpu.h'. This caused build breakage:

drivers/mfd/omap-usb-host.c: In function 'omap_usbhs_init':
drivers/mfd/omap-usb-host.c:525:3: error: implicit declaration of function 'cpu_is_omap3430' drivers/mfd/omap-usb-host.c:525:3: error: implicit declaration of function 'omap_rev' drivers/mfd/omap-usb-host.c:525:43: error: 'OMAP3430_REV_ES2_1' undeclared (first use in this function)

Include <plat/cpu.h> to fix it.

---
 drivers/mfd/omap-usb-host.c |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mfd/omap-usb-host.c +1 -1
index c8aae66..7e96bb2 100644
@@ -25,6 +25,7 @@
  #include <linux/clk.h>
  #include <linux/dma-mapping.h>
  #include <linux/spinlock.h>
+#include <plat/cpu.h>
  #include <plat/usb.h>
  #include <linux/pm_runtime.h>
 
--
Quoted 2 lines

1.7.1

Yes, this seems correct!
But, on which config you are seeing this error?

regards
keshava

#2 lore raw

On Mon, 23 Apr 2012 11:47:25 +0530 "Munegowda, Keshava" <[email protected]> wrote:
...

Quoted 2 lines

Yes, this seems correct!
But, on which config you are seeing this error?

I was working on some drivers for am3517 based board and I'm seeing this error since I rebased by patches on v3.4-rc4.

Thanks,
Anatolij

#3 lore raw
Quoted 11 lines · Anatolij Gustschin

On Mon, 23 Apr 2012 11:47:25 +0530 "Munegowda, Keshava" <[email protected]> wrote:
...

Quoted 2 lines

Yes, this seems correct!
But, on which config you are seeing this error?

I was working on some drivers for am3517 based board and I'm seeing this error since I rebased by patches on v3.4-rc4.

Thanks,
Anatolij

Thanks Anatoliji
yes, I dont have am3517 setup; I have validated this patch on
omap3 sdp and omap4 sdp

regards
keshava

Tested-by on v1 1/1
#4 lore raw
In reply to Anatolij Gustschin
Quoted 9 lines · Anatolij Gustschin

Commit 1fcb57d0f6e1150003d222051aaaf4bc4a9ccc94 (ARM: OMAP3: USB: Fix the EHCI ULPI PHY reset issue) removed #include<linux/gpio.h> which indirectly includes 'plat/cpu.h'. This caused build breakage:

drivers/mfd/omap-usb-host.c: In function 'omap_usbhs_init':
drivers/mfd/omap-usb-host.c:525:3: error: implicit declaration of function 'cpu_is_omap3430' drivers/mfd/omap-usb-host.c:525:3: error: implicit declaration of function 'omap_rev' drivers/mfd/omap-usb-host.c:525:43: error: 'OMAP3430_REV_ES2_1' undeclared (first use in this function)

Quoted 4 lines

Include<plat/cpu.h> to fix it.

Build failed on OMAP4 Pandaboard as well. Applied the patch and successfully built.

Gr. AvS