diff options
author | Felipe Balbi <balbi@ti.com> | 2013-08-09 10:31:23 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-08-09 10:31:23 -0400 |
commit | 9e5f9c8aa85da01a7474655dc6af43b5985ad56a (patch) | |
tree | 15ceace09b484a2b351bd26587784cc169a702f0 /drivers/usb/phy | |
parent | d07f4a8200cfc7ff2ba23ef87dd6267a4d70fb10 (diff) | |
parent | 3fa4d7344be0afebd80382ffeea6b1787cccf971 (diff) |
Merge branch 'nop-phy-rename' into next
Signed-off-by: Felipe Balbi <balbi@ti.com>
Conflicts:
drivers/usb/phy/phy-generic.c
Diffstat (limited to 'drivers/usb/phy')
-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 |
2 files changed, 23 insertions, 23 deletions
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 f52b7f89eef1..406f8e43f852 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,12 +139,12 @@ 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 = | 145 | struct usb_phy_gen_xceiv_platform_data *pdata = |
146 | dev_get_platdata(&pdev->dev); | 146 | dev_get_platdata(&pdev->dev); |
147 | struct nop_usb_xceiv *nop; | 147 | struct usb_phy_gen_xceiv *nop; |
148 | enum usb_phy_type type = USB_PHY_TYPE_USB2; | 148 | enum usb_phy_type type = USB_PHY_TYPE_USB2; |
149 | int err; | 149 | int err; |
150 | u32 clk_rate = 0; | 150 | u32 clk_rate = 0; |
@@ -246,9 +246,9 @@ err_add: | |||
246 | return err; | 246 | return err; |
247 | } | 247 | } |
248 | 248 | ||
249 | static int nop_usb_xceiv_remove(struct platform_device *pdev) | 249 | static int usb_phy_gen_xceiv_remove(struct platform_device *pdev) |
250 | { | 250 | { |
251 | struct nop_usb_xceiv *nop = platform_get_drvdata(pdev); | 251 | struct usb_phy_gen_xceiv *nop = platform_get_drvdata(pdev); |
252 | 252 | ||
253 | if (!IS_ERR(nop->clk)) | 253 | if (!IS_ERR(nop->clk)) |
254 | clk_unprepare(nop->clk); | 254 | clk_unprepare(nop->clk); |
@@ -265,29 +265,29 @@ static const struct of_device_id nop_xceiv_dt_ids[] = { | |||
265 | 265 | ||
266 | MODULE_DEVICE_TABLE(of, nop_xceiv_dt_ids); | 266 | MODULE_DEVICE_TABLE(of, nop_xceiv_dt_ids); |
267 | 267 | ||
268 | static struct platform_driver nop_usb_xceiv_driver = { | 268 | static struct platform_driver usb_phy_gen_xceiv_driver = { |
269 | .probe = nop_usb_xceiv_probe, | 269 | .probe = usb_phy_gen_xceiv_probe, |
270 | .remove = nop_usb_xceiv_remove, | 270 | .remove = usb_phy_gen_xceiv_remove, |
271 | .driver = { | 271 | .driver = { |
272 | .name = "nop_usb_xceiv", | 272 | .name = "usb_phy_gen_xceiv", |
273 | .owner = THIS_MODULE, | 273 | .owner = THIS_MODULE, |
274 | .of_match_table = nop_xceiv_dt_ids, | 274 | .of_match_table = nop_xceiv_dt_ids, |
275 | }, | 275 | }, |
276 | }; | 276 | }; |
277 | 277 | ||
278 | static int __init nop_usb_xceiv_init(void) | 278 | static int __init usb_phy_gen_xceiv_init(void) |
279 | { | 279 | { |
280 | return platform_driver_register(&nop_usb_xceiv_driver); | 280 | return platform_driver_register(&usb_phy_gen_xceiv_driver); |
281 | } | 281 | } |
282 | subsys_initcall(nop_usb_xceiv_init); | 282 | subsys_initcall(usb_phy_gen_xceiv_init); |
283 | 283 | ||
284 | static void __exit nop_usb_xceiv_exit(void) | 284 | static void __exit usb_phy_gen_xceiv_exit(void) |
285 | { | 285 | { |
286 | platform_driver_unregister(&nop_usb_xceiv_driver); | 286 | platform_driver_unregister(&usb_phy_gen_xceiv_driver); |
287 | } | 287 | } |
288 | module_exit(nop_usb_xceiv_exit); | 288 | module_exit(usb_phy_gen_xceiv_exit); |
289 | 289 | ||
290 | MODULE_ALIAS("platform:nop_usb_xceiv"); | 290 | MODULE_ALIAS("platform:usb_phy_gen_xceiv"); |
291 | MODULE_AUTHOR("Texas Instruments Inc"); | 291 | MODULE_AUTHOR("Texas Instruments Inc"); |
292 | MODULE_DESCRIPTION("NOP USB Transceiver driver"); | 292 | MODULE_DESCRIPTION("NOP USB Transceiver driver"); |
293 | MODULE_LICENSE("GPL"); | 293 | MODULE_LICENSE("GPL"); |