summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2013-10-03 18:12:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-03 15:47:30 -0700
commit4fd06af96b9397fc54eb6b1a013a60c34693eef0 (patch)
tree56d4e96d9e3d209773e797176e1e7004d94882a8 /drivers/usb/phy
parent4ae1a5bd3fabd7f7f3575309c7a0d676fecf6303 (diff)
downloadop-kernel-dev-4fd06af96b9397fc54eb6b1a013a60c34693eef0.zip
op-kernel-dev-4fd06af96b9397fc54eb6b1a013a60c34693eef0.tar.gz
usb: phy: omap-control: Get rid of platform data
omap-control device is present from OMAP4 onwards which support device tree boots only. So get rid of platform data. Signed-off-by: Roger Quadros <rogerq@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r--drivers/usb/phy/phy-omap-control.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/usb/phy/phy-omap-control.c b/drivers/usb/phy/phy-omap-control.c
index a4dda8e..9772592 100644
--- a/drivers/usb/phy/phy-omap-control.c
+++ b/drivers/usb/phy/phy-omap-control.c
@@ -197,8 +197,6 @@ static int omap_control_usb_probe(struct platform_device *pdev)
{
struct resource *res;
struct device_node *np = pdev->dev.of_node;
- struct omap_control_usb_platform_data *pdata =
- dev_get_platdata(&pdev->dev);
control_usb = devm_kzalloc(&pdev->dev, sizeof(*control_usb),
GFP_KERNEL);
@@ -207,14 +205,10 @@ static int omap_control_usb_probe(struct platform_device *pdev)
return -ENOMEM;
}
- if (np) {
+ if (np)
of_property_read_u32(np, "ti,type", &control_usb->type);
- } else if (pdata) {
- control_usb->type = pdata->type;
- } else {
- dev_err(&pdev->dev, "no pdata present\n");
- return -EINVAL;
- }
+ else
+ return -EINVAL; /* We only support DT boot */
control_usb->dev = &pdev->dev;
OpenPOWER on IntegriCloud