Commit 4fd06af9 authored by Roger Quadros's avatar Roger Quadros Committed by Greg Kroah-Hartman

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: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4ae1a5bd
...@@ -197,8 +197,6 @@ static int omap_control_usb_probe(struct platform_device *pdev) ...@@ -197,8 +197,6 @@ static int omap_control_usb_probe(struct platform_device *pdev)
{ {
struct resource *res; struct resource *res;
struct device_node *np = pdev->dev.of_node; 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), control_usb = devm_kzalloc(&pdev->dev, sizeof(*control_usb),
GFP_KERNEL); GFP_KERNEL);
...@@ -207,14 +205,10 @@ static int omap_control_usb_probe(struct platform_device *pdev) ...@@ -207,14 +205,10 @@ static int omap_control_usb_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
} }
if (np) { if (np)
of_property_read_u32(np, "ti,type", &control_usb->type); of_property_read_u32(np, "ti,type", &control_usb->type);
} else if (pdata) { else
control_usb->type = pdata->type; return -EINVAL; /* We only support DT boot */
} else {
dev_err(&pdev->dev, "no pdata present\n");
return -EINVAL;
}
control_usb->dev = &pdev->dev; control_usb->dev = &pdev->dev;
......
...@@ -31,10 +31,6 @@ struct omap_control_usb { ...@@ -31,10 +31,6 @@ struct omap_control_usb {
u32 type; u32 type;
}; };
struct omap_control_usb_platform_data {
u8 type;
};
enum omap_control_usb_mode { enum omap_control_usb_mode {
USB_MODE_UNDEFINED = 0, USB_MODE_UNDEFINED = 0,
USB_MODE_HOST, USB_MODE_HOST,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment