ARM: shmobile: Remove Lager USBHS UDC ifdefs
authorMagnus Damm <damm@opensource.se>
Wed, 29 Jan 2014 23:10:09 +0000 (08:10 +0900)
committerSimon Horman <horms+renesas@verge.net.au>
Tue, 4 Feb 2014 05:28:33 +0000 (14:28 +0900)
Remove ifdefs to make the Lager USBHS device always present.
This makes it more like other devices, no need to be special.

Also, these ifdefs by themselves do not hurt much, but combined
with USB Host device ifdefs that were proposed earlier we could
basically end up with a kernel that drives VBUS incorrectly
depending on the kernel configuration - lets not do that.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-lager.c

index 4a95a4593eb1789a3ea4909722ed4a60ab262b3f..fdcc868de1fae075df6777cf151f271e521f9588 100644 (file)
@@ -368,7 +368,6 @@ static const struct platform_device_info sata1_info __initconst = {
 };
 
 /* USBHS */
-#if IS_ENABLED(CONFIG_USB_RENESAS_USBHS_UDC)
 static const struct resource usbhs_resources[] __initconst = {
        DEFINE_RES_MEM(0xe6590000, 0x100),
        DEFINE_RES_IRQ(gic_spi(107)),
@@ -478,9 +477,6 @@ static void __init lager_register_usbhs(void)
                                          &usbhs_priv.info,
                                          sizeof(usbhs_priv.info));
 }
-#else  /* CONFIG_USB_RENESAS_USBHS_UDC */
-static inline void lager_register_usbhs(void) { }
-#endif /* CONFIG_USB_RENESAS_USBHS_UDC */
 
 /* USBHS PHY */
 static const struct rcar_gen2_phy_platform_data usbhs_phy_pdata __initconst = {
This page took 0.042182 seconds and 5 git commands to generate.