aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-s3c2410.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-s3c2410.c')
-rw-r--r--drivers/usb/host/ohci-s3c2410.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c
index e125770b893c..4919afa4125e 100644
--- a/drivers/usb/host/ohci-s3c2410.c
+++ b/drivers/usb/host/ohci-s3c2410.c
@@ -38,12 +38,12 @@ static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc);
38 38
39static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd) 39static struct s3c2410_hcd_info *to_s3c2410_info(struct usb_hcd *hcd)
40{ 40{
41 return hcd->self.controller->platform_data; 41 return dev_get_platdata(hcd->self.controller);
42} 42}
43 43
44static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) 44static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)
45{ 45{
46 struct s3c2410_hcd_info *info = dev->dev.platform_data; 46 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
47 47
48 dev_dbg(&dev->dev, "s3c2410_start_hc:\n"); 48 dev_dbg(&dev->dev, "s3c2410_start_hc:\n");
49 49
@@ -63,7 +63,7 @@ static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)
63 63
64static void s3c2410_stop_hc(struct platform_device *dev) 64static void s3c2410_stop_hc(struct platform_device *dev)
65{ 65{
66 struct s3c2410_hcd_info *info = dev->dev.platform_data; 66 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
67 67
68 dev_dbg(&dev->dev, "s3c2410_stop_hc:\n"); 68 dev_dbg(&dev->dev, "s3c2410_stop_hc:\n");
69 69
@@ -339,10 +339,11 @@ static int usb_hcd_s3c2410_probe(const struct hc_driver *driver,
339 struct platform_device *dev) 339 struct platform_device *dev)
340{ 340{
341 struct usb_hcd *hcd = NULL; 341 struct usb_hcd *hcd = NULL;
342 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
342 int retval; 343 int retval;
343 344
344 s3c2410_usb_set_power(dev->dev.platform_data, 1, 1); 345 s3c2410_usb_set_power(info, 1, 1);
345 s3c2410_usb_set_power(dev->dev.platform_data, 2, 1); 346 s3c2410_usb_set_power(info, 2, 1);
346 347
347 hcd = usb_create_hcd(driver, &dev->dev, "s3c24xx"); 348 hcd = usb_create_hcd(driver, &dev->dev, "s3c24xx");
348 if (hcd == NULL) 349 if (hcd == NULL)