diff options
-rw-r--r-- | arch/arm/plat-omap/include/plat/usb.h | 1 | ||||
-rw-r--r-- | drivers/mfd/omap-usb-host.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/plat/usb.h b/arch/arm/plat-omap/include/plat/usb.h index ca15a2632da3..e68d0998d55f 100644 --- a/arch/arm/plat-omap/include/plat/usb.h +++ b/arch/arm/plat-omap/include/plat/usb.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #define __ASM_ARCH_OMAP_USB_H | 4 | #define __ASM_ARCH_OMAP_USB_H |
5 | 5 | ||
6 | #include <linux/io.h> | 6 | #include <linux/io.h> |
7 | #include <linux/platform_device.h> | ||
7 | #include <linux/usb/musb.h> | 8 | #include <linux/usb/musb.h> |
8 | #include <plat/board.h> | 9 | #include <plat/board.h> |
9 | 10 | ||
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 41088ecbb2a9..8a256dfe6ddf 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/types.h> | 21 | #include <linux/types.h> |
22 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
24 | #include <linux/platform_device.h> | ||
25 | #include <linux/clk.h> | 24 | #include <linux/clk.h> |
26 | #include <linux/dma-mapping.h> | 25 | #include <linux/dma-mapping.h> |
27 | #include <linux/spinlock.h> | 26 | #include <linux/spinlock.h> |
@@ -436,6 +435,7 @@ static int usbhs_runtime_resume(struct device *dev) | |||
436 | return -ENODEV; | 435 | return -ENODEV; |
437 | } | 436 | } |
438 | 437 | ||
438 | omap_tll_enable(); | ||
439 | spin_lock_irqsave(&omap->lock, flags); | 439 | spin_lock_irqsave(&omap->lock, flags); |
440 | 440 | ||
441 | if (omap->ehci_logic_fck && !IS_ERR(omap->ehci_logic_fck)) | 441 | if (omap->ehci_logic_fck && !IS_ERR(omap->ehci_logic_fck)) |
@@ -487,6 +487,7 @@ static int usbhs_runtime_suspend(struct device *dev) | |||
487 | clk_disable(omap->ehci_logic_fck); | 487 | clk_disable(omap->ehci_logic_fck); |
488 | 488 | ||
489 | spin_unlock_irqrestore(&omap->lock, flags); | 489 | spin_unlock_irqrestore(&omap->lock, flags); |
490 | omap_tll_disable(); | ||
490 | 491 | ||
491 | return 0; | 492 | return 0; |
492 | } | 493 | } |
@@ -910,8 +911,10 @@ static int __init omap_usbhs_drvinit(void) | |||
910 | * init before ehci and ohci drivers; | 911 | * init before ehci and ohci drivers; |
911 | * The usbhs core driver should be initialized much before | 912 | * The usbhs core driver should be initialized much before |
912 | * the omap ehci and ohci probe functions are called. | 913 | * the omap ehci and ohci probe functions are called. |
914 | * This usbhs core driver should be initialized after | ||
915 | * usb tll driver | ||
913 | */ | 916 | */ |
914 | fs_initcall(omap_usbhs_drvinit); | 917 | fs_initcall_sync(omap_usbhs_drvinit); |
915 | 918 | ||
916 | static void __exit omap_usbhs_drvexit(void) | 919 | static void __exit omap_usbhs_drvexit(void) |
917 | { | 920 | { |