diff options
author | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-04-03 09:59:10 +0000 |
---|---|---|
committer | blogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-04-03 09:59:10 +0000 |
commit | 28f5bcacd1691f5c44f1201156a2b3cf2ed94c78 (patch) | |
tree | 03310346c9d78ed5485994b47e3bb610250851ae /target/linux/ramips/patches-3.8/0203-owrt-OF-USB-add-OF-binding-for-ehci-and-ohci-platfor.patch | |
parent | 78a75e9744245857f0cc1e4ab309a91a5dc1717d (diff) |
[ramips] add patches for v3.8
Signed-off-by: John Crsipin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36163 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.8/0203-owrt-OF-USB-add-OF-binding-for-ehci-and-ohci-platfor.patch')
-rw-r--r-- | target/linux/ramips/patches-3.8/0203-owrt-OF-USB-add-OF-binding-for-ehci-and-ohci-platfor.patch | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.8/0203-owrt-OF-USB-add-OF-binding-for-ehci-and-ohci-platfor.patch b/target/linux/ramips/patches-3.8/0203-owrt-OF-USB-add-OF-binding-for-ehci-and-ohci-platfor.patch new file mode 100644 index 0000000000..3f9bb58904 --- /dev/null +++ b/target/linux/ramips/patches-3.8/0203-owrt-OF-USB-add-OF-binding-for-ehci-and-ohci-platfor.patch @@ -0,0 +1,66 @@ +From 3c99a50d689cb4811b13b9810d18c9316587216f Mon Sep 17 00:00:00 2001 +From: John Crispin <blogic@openwrt.org> +Date: Mon, 18 Mar 2013 20:51:21 +0100 +Subject: [PATCH 203/208] owrt: OF: USB: add OF binding for ehci and ohci + platform driver + +Make ohci-platform and ehci-platform loadable from OF. + +Signed-off-by: John Crispin <blogic@openwrt.org> +--- + drivers/usb/host/ehci-platform.c | 7 +++++++ + drivers/usb/host/ohci-platform.c | 7 +++++++ + 2 files changed, 14 insertions(+) + +diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c +index ca75063..fdddce1 100644 +--- a/drivers/usb/host/ehci-platform.c ++++ b/drivers/usb/host/ehci-platform.c +@@ -183,6 +183,12 @@ static int ehci_platform_resume(struct device *dev) + #define ehci_platform_resume NULL + #endif /* CONFIG_PM */ + ++static const struct of_device_id ehci_match_table[] = { ++ { .compatible = "ehci-platform" }, ++ {}, ++}; ++MODULE_DEVICE_TABLE(of, ehci_match_table); ++ + static const struct platform_device_id ehci_platform_table[] = { + { "ehci-platform", 0 }, + { } +@@ -203,6 +209,7 @@ static struct platform_driver ehci_platform_driver = { + .owner = THIS_MODULE, + .name = "ehci-platform", + .pm = &ehci_platform_pm_ops, ++ .of_match_table = ehci_match_table, + } + }; + +diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c +index c3e7287..6d7d30b 100644 +--- a/drivers/usb/host/ohci-platform.c ++++ b/drivers/usb/host/ohci-platform.c +@@ -201,6 +201,12 @@ static int ohci_platform_resume(struct device *dev) + #define ohci_platform_resume NULL + #endif /* CONFIG_PM */ + ++static const struct of_device_id ohci_match_table[] = { ++ { .compatible = "ohci-platform" }, ++ {}, ++}; ++MODULE_DEVICE_TABLE(of, ohci_match_table); ++ + static const struct platform_device_id ohci_platform_table[] = { + { "ohci-platform", 0 }, + { } +@@ -221,5 +227,6 @@ static struct platform_driver ohci_platform_driver = { + .owner = THIS_MODULE, + .name = "ohci-platform", + .pm = &ohci_platform_pm_ops, ++ .of_match_table = ohci_match_table, + } + }; +-- +1.7.10.4 + |