diff options
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc3/dwc3-exynos.c | 8 | ||||
-rw-r--r-- | drivers/usb/dwc3/dwc3-pci.c | 8 | ||||
-rw-r--r-- | drivers/usb/musb/am35x.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/blackfin.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/da8xx.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/davinci.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 2 | ||||
-rw-r--r-- | drivers/usb/phy/Makefile | 2 | ||||
-rw-r--r-- | drivers/usb/phy/phy-generic.c (renamed from drivers/usb/phy/phy-nop.c) | 44 |
10 files changed, 37 insertions, 37 deletions
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 8ce9d7fd6cfc..a179c5a54b39 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/dma-mapping.h> | 20 | #include <linux/dma-mapping.h> |
21 | #include <linux/clk.h> | 21 | #include <linux/clk.h> |
22 | #include <linux/usb/otg.h> | 22 | #include <linux/usb/otg.h> |
23 | #include <linux/usb/nop-usb-xceiv.h> | 23 | #include <linux/usb/usb_phy_gen_xceiv.h> |
24 | #include <linux/of.h> | 24 | #include <linux/of.h> |
25 | #include <linux/of_platform.h> | 25 | #include <linux/of_platform.h> |
26 | 26 | ||
@@ -34,13 +34,13 @@ struct dwc3_exynos { | |||
34 | 34 | ||
35 | static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) | 35 | static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) |
36 | { | 36 | { |
37 | struct nop_usb_xceiv_platform_data pdata; | 37 | struct usb_phy_gen_xceiv_platform_data pdata; |
38 | struct platform_device *pdev; | 38 | struct platform_device *pdev; |
39 | int ret; | 39 | int ret; |
40 | 40 | ||
41 | memset(&pdata, 0x00, sizeof(pdata)); | 41 | memset(&pdata, 0x00, sizeof(pdata)); |
42 | 42 | ||
43 | pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); | 43 | pdev = platform_device_alloc("usb_phy_gen_xceiv", PLATFORM_DEVID_AUTO); |
44 | if (!pdev) | 44 | if (!pdev) |
45 | return -ENOMEM; | 45 | return -ENOMEM; |
46 | 46 | ||
@@ -51,7 +51,7 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) | |||
51 | if (ret) | 51 | if (ret) |
52 | goto err1; | 52 | goto err1; |
53 | 53 | ||
54 | pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); | 54 | pdev = platform_device_alloc("usb_phy_gen_xceiv", PLATFORM_DEVID_AUTO); |
55 | if (!pdev) { | 55 | if (!pdev) { |
56 | ret = -ENOMEM; | 56 | ret = -ENOMEM; |
57 | goto err1; | 57 | goto err1; |
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index ed07ec04a962..87ea3d503fc5 100644 --- a/drivers/usb/dwc3/dwc3-pci.c +++ b/drivers/usb/dwc3/dwc3-pci.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include <linux/platform_device.h> | 43 | #include <linux/platform_device.h> |
44 | 44 | ||
45 | #include <linux/usb/otg.h> | 45 | #include <linux/usb/otg.h> |
46 | #include <linux/usb/nop-usb-xceiv.h> | 46 | #include <linux/usb/usb_phy_gen_xceiv.h> |
47 | 47 | ||
48 | /* FIXME define these in <linux/pci_ids.h> */ | 48 | /* FIXME define these in <linux/pci_ids.h> */ |
49 | #define PCI_VENDOR_ID_SYNOPSYS 0x16c3 | 49 | #define PCI_VENDOR_ID_SYNOPSYS 0x16c3 |
@@ -58,13 +58,13 @@ struct dwc3_pci { | |||
58 | 58 | ||
59 | static int dwc3_pci_register_phys(struct dwc3_pci *glue) | 59 | static int dwc3_pci_register_phys(struct dwc3_pci *glue) |
60 | { | 60 | { |
61 | struct nop_usb_xceiv_platform_data pdata; | 61 | struct usb_phy_gen_xceiv_platform_data pdata; |
62 | struct platform_device *pdev; | 62 | struct platform_device *pdev; |
63 | int ret; | 63 | int ret; |
64 | 64 | ||
65 | memset(&pdata, 0x00, sizeof(pdata)); | 65 | memset(&pdata, 0x00, sizeof(pdata)); |
66 | 66 | ||
67 | pdev = platform_device_alloc("nop_usb_xceiv", 0); | 67 | pdev = platform_device_alloc("usb_phy_gen_xceiv", 0); |
68 | if (!pdev) | 68 | if (!pdev) |
69 | return -ENOMEM; | 69 | return -ENOMEM; |
70 | 70 | ||
@@ -75,7 +75,7 @@ static int dwc3_pci_register_phys(struct dwc3_pci *glue) | |||
75 | if (ret) | 75 | if (ret) |
76 | goto err1; | 76 | goto err1; |
77 | 77 | ||
78 | pdev = platform_device_alloc("nop_usb_xceiv", 1); | 78 | pdev = platform_device_alloc("usb_phy_gen_xceiv", 1); |
79 | if (!pdev) { | 79 | if (!pdev) { |
80 | ret = -ENOMEM; | 80 | ret = -ENOMEM; |
81 | goto err1; | 81 | goto err1; |
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index 2231850c0625..5733a209ab95 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/io.h> | 33 | #include <linux/io.h> |
34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
35 | #include <linux/dma-mapping.h> | 35 | #include <linux/dma-mapping.h> |
36 | #include <linux/usb/nop-usb-xceiv.h> | 36 | #include <linux/usb/usb_phy_gen_xceiv.h> |
37 | #include <linux/platform_data/usb-omap.h> | 37 | #include <linux/platform_data/usb-omap.h> |
38 | 38 | ||
39 | #include "musb_core.h" | 39 | #include "musb_core.h" |
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index 6ba8439bd5a6..195e96674fff 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <linux/dma-mapping.h> | 20 | #include <linux/dma-mapping.h> |
21 | #include <linux/prefetch.h> | 21 | #include <linux/prefetch.h> |
22 | #include <linux/usb/nop-usb-xceiv.h> | 22 | #include <linux/usb/usb_phy_gen_xceiv.h> |
23 | 23 | ||
24 | #include <asm/cacheflush.h> | 24 | #include <asm/cacheflush.h> |
25 | 25 | ||
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index 0da6f648a9fe..ccc6b63bc380 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/io.h> | 33 | #include <linux/io.h> |
34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
35 | #include <linux/dma-mapping.h> | 35 | #include <linux/dma-mapping.h> |
36 | #include <linux/usb/nop-usb-xceiv.h> | 36 | #include <linux/usb/usb_phy_gen_xceiv.h> |
37 | 37 | ||
38 | #include <mach/da8xx.h> | 38 | #include <mach/da8xx.h> |
39 | #include <linux/platform_data/usb-davinci.h> | 39 | #include <linux/platform_data/usb-davinci.h> |
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index f8aeaf2e2cd1..91f300e93cf4 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/gpio.h> | 33 | #include <linux/gpio.h> |
34 | #include <linux/platform_device.h> | 34 | #include <linux/platform_device.h> |
35 | #include <linux/dma-mapping.h> | 35 | #include <linux/dma-mapping.h> |
36 | #include <linux/usb/nop-usb-xceiv.h> | 36 | #include <linux/usb/usb_phy_gen_xceiv.h> |
37 | 37 | ||
38 | #include <mach/cputype.h> | 38 | #include <mach/cputype.h> |
39 | #include <mach/hardware.h> | 39 | #include <mach/hardware.h> |
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 5233804d66b1..55fe3c292cd2 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <linux/dma-mapping.h> | 36 | #include <linux/dma-mapping.h> |
37 | #include <linux/pm_runtime.h> | 37 | #include <linux/pm_runtime.h> |
38 | #include <linux/module.h> | 38 | #include <linux/module.h> |
39 | #include <linux/usb/nop-usb-xceiv.h> | 39 | #include <linux/usb/usb_phy_gen_xceiv.h> |
40 | #include <linux/platform_data/usb-omap.h> | 40 | #include <linux/platform_data/usb-omap.h> |
41 | #include <linux/sizes.h> | 41 | #include <linux/sizes.h> |
42 | 42 | ||
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 2c06a8969a9f..20f182c6184a 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <linux/io.h> | 25 | #include <linux/io.h> |
26 | #include <linux/platform_device.h> | 26 | #include <linux/platform_device.h> |
27 | #include <linux/dma-mapping.h> | 27 | #include <linux/dma-mapping.h> |
28 | #include <linux/usb/nop-usb-xceiv.h> | 28 | #include <linux/usb/usb_phy_gen_xceiv.h> |
29 | 29 | ||
30 | #include "musb_core.h" | 30 | #include "musb_core.h" |
31 | 31 | ||
diff --git a/drivers/usb/phy/Makefile b/drivers/usb/phy/Makefile index 070eca3af18b..24c5816409fd 100644 --- a/drivers/usb/phy/Makefile +++ b/drivers/usb/phy/Makefile | |||
@@ -14,7 +14,7 @@ phy-fsl-usb2-objs := phy-fsl-usb.o phy-fsm-usb.o | |||
14 | obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb2.o | 14 | obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb2.o |
15 | obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o | 15 | obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o |
16 | obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o | 16 | obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o |
17 | obj-$(CONFIG_NOP_USB_XCEIV) += phy-nop.o | 17 | obj-$(CONFIG_NOP_USB_XCEIV) += phy-generic.o |
18 | obj-$(CONFIG_OMAP_CONTROL_USB) += phy-omap-control.o | 18 | obj-$(CONFIG_OMAP_CONTROL_USB) += phy-omap-control.o |
19 | obj-$(CONFIG_OMAP_USB2) += phy-omap-usb2.o | 19 | obj-$(CONFIG_OMAP_USB2) += phy-omap-usb2.o |
20 | obj-$(CONFIG_OMAP_USB3) += phy-omap-usb3.o | 20 | obj-$(CONFIG_OMAP_USB3) += phy-omap-usb3.o |
diff --git a/drivers/usb/phy/phy-nop.c b/drivers/usb/phy/phy-generic.c index 55445e5d72e5..f379b7ded037 100644 --- a/drivers/usb/phy/phy-nop.c +++ b/drivers/usb/phy/phy-generic.c | |||
@@ -30,13 +30,13 @@ | |||
30 | #include <linux/platform_device.h> | 30 | #include <linux/platform_device.h> |
31 | #include <linux/dma-mapping.h> | 31 | #include <linux/dma-mapping.h> |
32 | #include <linux/usb/otg.h> | 32 | #include <linux/usb/otg.h> |
33 | #include <linux/usb/nop-usb-xceiv.h> | 33 | #include <linux/usb/usb_phy_gen_xceiv.h> |
34 | #include <linux/slab.h> | 34 | #include <linux/slab.h> |
35 | #include <linux/clk.h> | 35 | #include <linux/clk.h> |
36 | #include <linux/regulator/consumer.h> | 36 | #include <linux/regulator/consumer.h> |
37 | #include <linux/of.h> | 37 | #include <linux/of.h> |
38 | 38 | ||
39 | struct nop_usb_xceiv { | 39 | struct usb_phy_gen_xceiv { |
40 | struct usb_phy phy; | 40 | struct usb_phy phy; |
41 | struct device *dev; | 41 | struct device *dev; |
42 | struct clk *clk; | 42 | struct clk *clk; |
@@ -50,9 +50,9 @@ void usb_nop_xceiv_register(void) | |||
50 | { | 50 | { |
51 | if (pd) | 51 | if (pd) |
52 | return; | 52 | return; |
53 | pd = platform_device_register_simple("nop_usb_xceiv", -1, NULL, 0); | 53 | pd = platform_device_register_simple("usb_phy_gen_xceiv", -1, NULL, 0); |
54 | if (!pd) { | 54 | if (!pd) { |
55 | printk(KERN_ERR "Unable to register usb nop transceiver\n"); | 55 | pr_err("Unable to register generic usb transceiver\n"); |
56 | return; | 56 | return; |
57 | } | 57 | } |
58 | } | 58 | } |
@@ -72,7 +72,7 @@ static int nop_set_suspend(struct usb_phy *x, int suspend) | |||
72 | 72 | ||
73 | static int nop_init(struct usb_phy *phy) | 73 | static int nop_init(struct usb_phy *phy) |
74 | { | 74 | { |
75 | struct nop_usb_xceiv *nop = dev_get_drvdata(phy->dev); | 75 | struct usb_phy_gen_xceiv *nop = dev_get_drvdata(phy->dev); |
76 | 76 | ||
77 | if (!IS_ERR(nop->vcc)) { | 77 | if (!IS_ERR(nop->vcc)) { |
78 | if (regulator_enable(nop->vcc)) | 78 | if (regulator_enable(nop->vcc)) |
@@ -93,7 +93,7 @@ static int nop_init(struct usb_phy *phy) | |||
93 | 93 | ||
94 | static void nop_shutdown(struct usb_phy *phy) | 94 | static void nop_shutdown(struct usb_phy *phy) |
95 | { | 95 | { |
96 | struct nop_usb_xceiv *nop = dev_get_drvdata(phy->dev); | 96 | struct usb_phy_gen_xceiv *nop = dev_get_drvdata(phy->dev); |
97 | 97 | ||
98 | if (!IS_ERR(nop->reset)) { | 98 | if (!IS_ERR(nop->reset)) { |
99 | /* Assert RESET */ | 99 | /* Assert RESET */ |
@@ -139,11 +139,11 @@ static int nop_set_host(struct usb_otg *otg, struct usb_bus *host) | |||
139 | return 0; | 139 | return 0; |
140 | } | 140 | } |
141 | 141 | ||
142 | static int nop_usb_xceiv_probe(struct platform_device *pdev) | 142 | static int usb_phy_gen_xceiv_probe(struct platform_device *pdev) |
143 | { | 143 | { |
144 | struct device *dev = &pdev->dev; | 144 | struct device *dev = &pdev->dev; |
145 | struct nop_usb_xceiv_platform_data *pdata = pdev->dev.platform_data; | 145 | struct usb_phy_gen_xceiv_platform_data *pdata = pdev->dev.platform_data; |
146 | struct nop_usb_xceiv *nop; | 146 | struct usb_phy_gen_xceiv *nop; |
147 | enum usb_phy_type type = USB_PHY_TYPE_USB2; | 147 | enum usb_phy_type type = USB_PHY_TYPE_USB2; |
148 | int err; | 148 | int err; |
149 | u32 clk_rate = 0; | 149 | u32 clk_rate = 0; |
@@ -245,9 +245,9 @@ err_add: | |||
245 | return err; | 245 | return err; |
246 | } | 246 | } |
247 | 247 | ||
248 | static int nop_usb_xceiv_remove(struct platform_device *pdev) | 248 | static int usb_phy_gen_xceiv_remove(struct platform_device *pdev) |
249 | { | 249 | { |
250 | struct nop_usb_xceiv *nop = platform_get_drvdata(pdev); | 250 | struct usb_phy_gen_xceiv *nop = platform_get_drvdata(pdev); |
251 | 251 | ||
252 | if (!IS_ERR(nop->clk)) | 252 | if (!IS_ERR(nop->clk)) |
253 | clk_unprepare(nop->clk); | 253 | clk_unprepare(nop->clk); |
@@ -264,29 +264,29 @@ static const struct of_device_id nop_xceiv_dt_ids[] = { | |||
264 | 264 | ||
265 | MODULE_DEVICE_TABLE(of, nop_xceiv_dt_ids); | 265 | MODULE_DEVICE_TABLE(of, nop_xceiv_dt_ids); |
266 | 266 | ||
267 | static struct platform_driver nop_usb_xceiv_driver = { | 267 | static struct platform_driver usb_phy_gen_xceiv_driver = { |
268 | .probe = nop_usb_xceiv_probe, | 268 | .probe = usb_phy_gen_xceiv_probe, |
269 | .remove = nop_usb_xceiv_remove, | 269 | .remove = usb_phy_gen_xceiv_remove, |
270 | .driver = { | 270 | .driver = { |
271 | .name = "nop_usb_xceiv", | 271 | .name = "usb_phy_gen_xceiv", |
272 | .owner = THIS_MODULE, | 272 | .owner = THIS_MODULE, |
273 | .of_match_table = nop_xceiv_dt_ids, | 273 | .of_match_table = nop_xceiv_dt_ids, |
274 | }, | 274 | }, |
275 | }; | 275 | }; |
276 | 276 | ||
277 | static int __init nop_usb_xceiv_init(void) | 277 | static int __init usb_phy_gen_xceiv_init(void) |
278 | { | 278 | { |
279 | return platform_driver_register(&nop_usb_xceiv_driver); | 279 | return platform_driver_register(&usb_phy_gen_xceiv_driver); |
280 | } | 280 | } |
281 | subsys_initcall(nop_usb_xceiv_init); | 281 | subsys_initcall(usb_phy_gen_xceiv_init); |
282 | 282 | ||
283 | static void __exit nop_usb_xceiv_exit(void) | 283 | static void __exit usb_phy_gen_xceiv_exit(void) |
284 | { | 284 | { |
285 | platform_driver_unregister(&nop_usb_xceiv_driver); | 285 | platform_driver_unregister(&usb_phy_gen_xceiv_driver); |
286 | } | 286 | } |
287 | module_exit(nop_usb_xceiv_exit); | 287 | module_exit(usb_phy_gen_xceiv_exit); |
288 | 288 | ||
289 | MODULE_ALIAS("platform:nop_usb_xceiv"); | 289 | MODULE_ALIAS("platform:usb_phy_gen_xceiv"); |
290 | MODULE_AUTHOR("Texas Instruments Inc"); | 290 | MODULE_AUTHOR("Texas Instruments Inc"); |
291 | MODULE_DESCRIPTION("NOP USB Transceiver driver"); | 291 | MODULE_DESCRIPTION("NOP USB Transceiver driver"); |
292 | MODULE_LICENSE("GPL"); | 292 | MODULE_LICENSE("GPL"); |