aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap2/board-omap3beagle.c4
-rw-r--r--arch/arm/mach-omap2/board-omap3evm.c4
-rw-r--r--arch/arm/mach-omap2/board-omap3pandora.c2
-rw-r--r--arch/arm/mach-omap2/usb-host.c10
-rw-r--r--drivers/usb/dwc3/dwc3-exynos.c8
-rw-r--r--drivers/usb/dwc3/dwc3-pci.c8
-rw-r--r--drivers/usb/musb/am35x.c2
-rw-r--r--drivers/usb/musb/blackfin.c2
-rw-r--r--drivers/usb/musb/da8xx.c2
-rw-r--r--drivers/usb/musb/davinci.c2
-rw-r--r--drivers/usb/musb/musb_dsps.c2
-rw-r--r--drivers/usb/musb/tusb6010.c2
-rw-r--r--drivers/usb/phy/Makefile2
-rw-r--r--drivers/usb/phy/phy-generic.c (renamed from drivers/usb/phy/phy-nop.c)44
-rw-r--r--include/linux/usb/usb_phy_gen_xceiv.h (renamed from include/linux/usb/nop-usb-xceiv.h)4
15 files changed, 49 insertions, 49 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index 04c116555412..1c6ae5f5bae7 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -33,7 +33,7 @@
33#include <linux/mtd/nand.h> 33#include <linux/mtd/nand.h>
34#include <linux/mmc/host.h> 34#include <linux/mmc/host.h>
35#include <linux/usb/phy.h> 35#include <linux/usb/phy.h>
36#include <linux/usb/nop-usb-xceiv.h> 36#include <linux/usb/usb_phy_gen_xceiv.h>
37 37
38#include <linux/regulator/machine.h> 38#include <linux/regulator/machine.h>
39#include <linux/i2c/twl.h> 39#include <linux/i2c/twl.h>
@@ -279,7 +279,7 @@ static struct regulator_consumer_supply beagle_vsim_supply[] = {
279static struct gpio_led gpio_leds[]; 279static struct gpio_led gpio_leds[];
280 280
281/* PHY's VCC regulator might be added later, so flag that we need it */ 281/* PHY's VCC regulator might be added later, so flag that we need it */
282static struct nop_usb_xceiv_platform_data hsusb2_phy_data = { 282static struct usb_phy_gen_xceiv_platform_data hsusb2_phy_data = {
283 .needs_vcc = true, 283 .needs_vcc = true,
284}; 284};
285 285
diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c
index 8c026269baca..52bdddd41e0e 100644
--- a/arch/arm/mach-omap2/board-omap3evm.c
+++ b/arch/arm/mach-omap2/board-omap3evm.c
@@ -33,7 +33,7 @@
33#include <linux/i2c/twl.h> 33#include <linux/i2c/twl.h>
34#include <linux/usb/otg.h> 34#include <linux/usb/otg.h>
35#include <linux/usb/musb.h> 35#include <linux/usb/musb.h>
36#include <linux/usb/nop-usb-xceiv.h> 36#include <linux/usb/usb_phy_gen_xceiv.h>
37#include <linux/smsc911x.h> 37#include <linux/smsc911x.h>
38 38
39#include <linux/wl12xx.h> 39#include <linux/wl12xx.h>
@@ -468,7 +468,7 @@ struct wl12xx_platform_data omap3evm_wlan_data __initdata = {
468static struct regulator_consumer_supply omap3evm_vaux2_supplies[] = { 468static struct regulator_consumer_supply omap3evm_vaux2_supplies[] = {
469 REGULATOR_SUPPLY("VDD_CSIPHY1", "omap3isp"), /* OMAP ISP */ 469 REGULATOR_SUPPLY("VDD_CSIPHY1", "omap3isp"), /* OMAP ISP */
470 REGULATOR_SUPPLY("VDD_CSIPHY2", "omap3isp"), /* OMAP ISP */ 470 REGULATOR_SUPPLY("VDD_CSIPHY2", "omap3isp"), /* OMAP ISP */
471 REGULATOR_SUPPLY("vcc", "nop_usb_xceiv.2"), /* hsusb port 2 */ 471 REGULATOR_SUPPLY("vcc", "usb_phy_gen_xceiv.2"), /* hsusb port 2 */
472 REGULATOR_SUPPLY("vaux2", NULL), 472 REGULATOR_SUPPLY("vaux2", NULL),
473}; 473};
474 474
diff --git a/arch/arm/mach-omap2/board-omap3pandora.c b/arch/arm/mach-omap2/board-omap3pandora.c
index b1547a0edfcd..d2b455e70486 100644
--- a/arch/arm/mach-omap2/board-omap3pandora.c
+++ b/arch/arm/mach-omap2/board-omap3pandora.c
@@ -352,7 +352,7 @@ static struct regulator_consumer_supply pandora_vcc_lcd_supply[] = {
352}; 352};
353 353
354static struct regulator_consumer_supply pandora_usb_phy_supply[] = { 354static struct regulator_consumer_supply pandora_usb_phy_supply[] = {
355 REGULATOR_SUPPLY("vcc", "nop_usb_xceiv.2"), /* hsusb port 2 */ 355 REGULATOR_SUPPLY("vcc", "usb_phy_gen_xceiv.2"), /* hsusb port 2 */
356}; 356};
357 357
358/* ads7846 on SPI and 2 nub controllers on I2C */ 358/* ads7846 on SPI and 2 nub controllers on I2C */
diff --git a/arch/arm/mach-omap2/usb-host.c b/arch/arm/mach-omap2/usb-host.c
index 2eb19d4d0aa1..e83a6a4b184a 100644
--- a/arch/arm/mach-omap2/usb-host.c
+++ b/arch/arm/mach-omap2/usb-host.c
@@ -28,7 +28,7 @@
28#include <linux/io.h> 28#include <linux/io.h>
29#include <linux/gpio.h> 29#include <linux/gpio.h>
30#include <linux/usb/phy.h> 30#include <linux/usb/phy.h>
31#include <linux/usb/nop-usb-xceiv.h> 31#include <linux/usb/usb_phy_gen_xceiv.h>
32 32
33#include "soc.h" 33#include "soc.h"
34#include "omap_device.h" 34#include "omap_device.h"
@@ -349,7 +349,7 @@ static struct fixed_voltage_config hsusb_reg_config = {
349 /* .init_data filled later */ 349 /* .init_data filled later */
350}; 350};
351 351
352static const char *nop_name = "nop_usb_xceiv"; /* NOP PHY driver */ 352static const char *nop_name = "usb_phy_gen_xceiv"; /* NOP PHY driver */
353static const char *reg_name = "reg-fixed-voltage"; /* Regulator driver */ 353static const char *reg_name = "reg-fixed-voltage"; /* Regulator driver */
354 354
355/** 355/**
@@ -460,9 +460,9 @@ int usbhs_init_phys(struct usbhs_phy_data *phy, int num_phys)
460 pdevinfo.name = nop_name; 460 pdevinfo.name = nop_name;
461 pdevinfo.id = phy->port; 461 pdevinfo.id = phy->port;
462 pdevinfo.data = phy->platform_data; 462 pdevinfo.data = phy->platform_data;
463 pdevinfo.size_data = sizeof(struct nop_usb_xceiv_platform_data); 463 pdevinfo.size_data =
464 464 sizeof(struct usb_phy_gen_xceiv_platform_data);
465 scnprintf(phy_id, MAX_STR, "nop_usb_xceiv.%d", 465 scnprintf(phy_id, MAX_STR, "usb_phy_gen_xceiv.%d",
466 phy->port); 466 phy->port);
467 pdev = platform_device_register_full(&pdevinfo); 467 pdev = platform_device_register_full(&pdevinfo);
468 if (IS_ERR(pdev)) { 468 if (IS_ERR(pdev)) {
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index 9a8a5e1f394f..2f2e88a3a11a 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -24,7 +24,7 @@
24#include <linux/dma-mapping.h> 24#include <linux/dma-mapping.h>
25#include <linux/clk.h> 25#include <linux/clk.h>
26#include <linux/usb/otg.h> 26#include <linux/usb/otg.h>
27#include <linux/usb/nop-usb-xceiv.h> 27#include <linux/usb/usb_phy_gen_xceiv.h>
28#include <linux/of.h> 28#include <linux/of.h>
29#include <linux/of_platform.h> 29#include <linux/of_platform.h>
30 30
@@ -38,13 +38,13 @@ struct dwc3_exynos {
38 38
39static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) 39static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos)
40{ 40{
41 struct nop_usb_xceiv_platform_data pdata; 41 struct usb_phy_gen_xceiv_platform_data pdata;
42 struct platform_device *pdev; 42 struct platform_device *pdev;
43 int ret; 43 int ret;
44 44
45 memset(&pdata, 0x00, sizeof(pdata)); 45 memset(&pdata, 0x00, sizeof(pdata));
46 46
47 pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); 47 pdev = platform_device_alloc("usb_phy_gen_xceiv", PLATFORM_DEVID_AUTO);
48 if (!pdev) 48 if (!pdev)
49 return -ENOMEM; 49 return -ENOMEM;
50 50
@@ -55,7 +55,7 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos)
55 if (ret) 55 if (ret)
56 goto err1; 56 goto err1;
57 57
58 pdev = platform_device_alloc("nop_usb_xceiv", PLATFORM_DEVID_AUTO); 58 pdev = platform_device_alloc("usb_phy_gen_xceiv", PLATFORM_DEVID_AUTO);
59 if (!pdev) { 59 if (!pdev) {
60 ret = -ENOMEM; 60 ret = -ENOMEM;
61 goto err1; 61 goto err1;
diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index 105535abcc4a..9b138129e856 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -23,7 +23,7 @@
23#include <linux/platform_device.h> 23#include <linux/platform_device.h>
24 24
25#include <linux/usb/otg.h> 25#include <linux/usb/otg.h>
26#include <linux/usb/nop-usb-xceiv.h> 26#include <linux/usb/usb_phy_gen_xceiv.h>
27 27
28/* FIXME define these in <linux/pci_ids.h> */ 28/* FIXME define these in <linux/pci_ids.h> */
29#define PCI_VENDOR_ID_SYNOPSYS 0x16c3 29#define PCI_VENDOR_ID_SYNOPSYS 0x16c3
@@ -38,13 +38,13 @@ struct dwc3_pci {
38 38
39static int dwc3_pci_register_phys(struct dwc3_pci *glue) 39static int dwc3_pci_register_phys(struct dwc3_pci *glue)
40{ 40{
41 struct nop_usb_xceiv_platform_data pdata; 41 struct usb_phy_gen_xceiv_platform_data pdata;
42 struct platform_device *pdev; 42 struct platform_device *pdev;
43 int ret; 43 int ret;
44 44
45 memset(&pdata, 0x00, sizeof(pdata)); 45 memset(&pdata, 0x00, sizeof(pdata));
46 46
47 pdev = platform_device_alloc("nop_usb_xceiv", 0); 47 pdev = platform_device_alloc("usb_phy_gen_xceiv", 0);
48 if (!pdev) 48 if (!pdev)
49 return -ENOMEM; 49 return -ENOMEM;
50 50
@@ -55,7 +55,7 @@ static int dwc3_pci_register_phys(struct dwc3_pci *glue)
55 if (ret) 55 if (ret)
56 goto err1; 56 goto err1;
57 57
58 pdev = platform_device_alloc("nop_usb_xceiv", 1); 58 pdev = platform_device_alloc("usb_phy_gen_xceiv", 1);
59 if (!pdev) { 59 if (!pdev) {
60 ret = -ENOMEM; 60 ret = -ENOMEM;
61 goto err1; 61 goto err1;
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index baebc39a571b..5c310c664218 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 3e63379ec469..72e2056b6082 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 7a46521c0800..d9ddf4122f37 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 12ab66d26d8f..ed0834e2b72e 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 4816b2f972d0..e7a2cd1c6630 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 2196ee6e79fe..0d68fc1d9f31 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
14obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb2.o 14obj-$(CONFIG_FSL_USB2_OTG) += phy-fsl-usb2.o
15obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o 15obj-$(CONFIG_ISP1301_OMAP) += phy-isp1301-omap.o
16obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o 16obj-$(CONFIG_MV_U3D_PHY) += phy-mv-u3d-usb.o
17obj-$(CONFIG_NOP_USB_XCEIV) += phy-nop.o 17obj-$(CONFIG_NOP_USB_XCEIV) += phy-generic.o
18obj-$(CONFIG_OMAP_CONTROL_USB) += phy-omap-control.o 18obj-$(CONFIG_OMAP_CONTROL_USB) += phy-omap-control.o
19obj-$(CONFIG_OMAP_USB2) += phy-omap-usb2.o 19obj-$(CONFIG_OMAP_USB2) += phy-omap-usb2.o
20obj-$(CONFIG_OMAP_USB3) += phy-omap-usb3.o 20obj-$(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
39struct nop_usb_xceiv { 39struct 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
73static int nop_init(struct usb_phy *phy) 73static 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
94static void nop_shutdown(struct usb_phy *phy) 94static 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
142static int nop_usb_xceiv_probe(struct platform_device *pdev) 142static 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
249static int nop_usb_xceiv_remove(struct platform_device *pdev) 249static 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
266MODULE_DEVICE_TABLE(of, nop_xceiv_dt_ids); 266MODULE_DEVICE_TABLE(of, nop_xceiv_dt_ids);
267 267
268static struct platform_driver nop_usb_xceiv_driver = { 268static 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
278static int __init nop_usb_xceiv_init(void) 278static 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}
282subsys_initcall(nop_usb_xceiv_init); 282subsys_initcall(usb_phy_gen_xceiv_init);
283 283
284static void __exit nop_usb_xceiv_exit(void) 284static 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}
288module_exit(nop_usb_xceiv_exit); 288module_exit(usb_phy_gen_xceiv_exit);
289 289
290MODULE_ALIAS("platform:nop_usb_xceiv"); 290MODULE_ALIAS("platform:usb_phy_gen_xceiv");
291MODULE_AUTHOR("Texas Instruments Inc"); 291MODULE_AUTHOR("Texas Instruments Inc");
292MODULE_DESCRIPTION("NOP USB Transceiver driver"); 292MODULE_DESCRIPTION("NOP USB Transceiver driver");
293MODULE_LICENSE("GPL"); 293MODULE_LICENSE("GPL");
diff --git a/include/linux/usb/nop-usb-xceiv.h b/include/linux/usb/usb_phy_gen_xceiv.h
index 148d35171aac..f9a7e7bc925b 100644
--- a/include/linux/usb/nop-usb-xceiv.h
+++ b/include/linux/usb/usb_phy_gen_xceiv.h
@@ -3,7 +3,7 @@
3 3
4#include <linux/usb/otg.h> 4#include <linux/usb/otg.h>
5 5
6struct nop_usb_xceiv_platform_data { 6struct usb_phy_gen_xceiv_platform_data {
7 enum usb_phy_type type; 7 enum usb_phy_type type;
8 unsigned long clk_rate; 8 unsigned long clk_rate;
9 9
@@ -12,7 +12,7 @@ struct nop_usb_xceiv_platform_data {
12 unsigned int needs_reset:1; 12 unsigned int needs_reset:1;
13}; 13};
14 14
15#if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) 15#if IS_ENABLED(CONFIG_NOP_USB_XCEIV)
16/* sometimes transceivers are accessed only through e.g. ULPI */ 16/* sometimes transceivers are accessed only through e.g. ULPI */
17extern void usb_nop_xceiv_register(void); 17extern void usb_nop_xceiv_register(void);
18extern void usb_nop_xceiv_unregister(void); 18extern void usb_nop_xceiv_unregister(void);