aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorFabio Baltieri <fabio.baltieri@linaro.org>2013-05-15 08:03:29 -0400
committerFelipe Balbi <balbi@ti.com>2013-05-28 13:01:56 -0400
commitb3affc399183eb0c548626daa9daad3d0e100906 (patch)
treefc7e6bdc15e927913d029fe023f483bc997eb6d6 /drivers/usb/phy
parenta96afc6b75cf9e7991a9b869246c5dca2a8a4e7a (diff)
usb: phy: ab8500-usb: add platform_device_id table
Add an initial platform_device_id table to the ab8500-usb driver to allow probing additional variants of the ab8500 family chips. Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Maxime Coquelin <maxime.coquelin@st.com> Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r--drivers/usb/phy/phy-ab8500-usb.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-ab8500-usb.c b/drivers/usb/phy/phy-ab8500-usb.c
index e6d461943f84..a0f7becb2e81 100644
--- a/drivers/usb/phy/phy-ab8500-usb.c
+++ b/drivers/usb/phy/phy-ab8500-usb.c
@@ -943,11 +943,18 @@ static int ab8500_usb_remove(struct platform_device *pdev)
943 return 0; 943 return 0;
944} 944}
945 945
946static struct platform_device_id ab8500_usb_devtype[] = {
947 { .name = "ab8500-usb", },
948 { /* sentinel */ }
949};
950MODULE_DEVICE_TABLE(platform, ab8500_usb_devtype);
951
946static struct platform_driver ab8500_usb_driver = { 952static struct platform_driver ab8500_usb_driver = {
947 .probe = ab8500_usb_probe, 953 .probe = ab8500_usb_probe,
948 .remove = ab8500_usb_remove, 954 .remove = ab8500_usb_remove,
955 .id_table = ab8500_usb_devtype,
949 .driver = { 956 .driver = {
950 .name = "ab8500-usb", 957 .name = "abx5x0-usb",
951 .owner = THIS_MODULE, 958 .owner = THIS_MODULE,
952 }, 959 },
953}; 960};
@@ -964,7 +971,6 @@ static void __exit ab8500_usb_exit(void)
964} 971}
965module_exit(ab8500_usb_exit); 972module_exit(ab8500_usb_exit);
966 973
967MODULE_ALIAS("platform:ab8500_usb");
968MODULE_AUTHOR("ST-Ericsson AB"); 974MODULE_AUTHOR("ST-Ericsson AB");
969MODULE_DESCRIPTION("AB8500 usb transceiver driver"); 975MODULE_DESCRIPTION("AB8500 usb transceiver driver");
970MODULE_LICENSE("GPL"); 976MODULE_LICENSE("GPL");