aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-da8xx.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-07-30 06:59:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-07-31 20:53:50 -0400
commitd4f09e28d7bc5c1adde8229b1e89401f23fb44f9 (patch)
tree839932c47eb570a24b6758a4829b81839310395b /drivers/usb/host/ohci-da8xx.c
parent4fae6f0fa86f92e6bc7429371b1e177ad0aaac66 (diff)
USB: host: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of accessing dev->platform_data directly. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-da8xx.c')
-rw-r--r--drivers/usb/host/ohci-da8xx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c
index 6aaa9c9c8eb0..9be59f11e051 100644
--- a/drivers/usb/host/ohci-da8xx.c
+++ b/drivers/usb/host/ohci-da8xx.c
@@ -85,7 +85,7 @@ static void ohci_da8xx_ocic_handler(struct da8xx_ohci_root_hub *hub,
85static int ohci_da8xx_init(struct usb_hcd *hcd) 85static int ohci_da8xx_init(struct usb_hcd *hcd)
86{ 86{
87 struct device *dev = hcd->self.controller; 87 struct device *dev = hcd->self.controller;
88 struct da8xx_ohci_root_hub *hub = dev->platform_data; 88 struct da8xx_ohci_root_hub *hub = dev_get_platdata(dev);
89 struct ohci_hcd *ohci = hcd_to_ohci(hcd); 89 struct ohci_hcd *ohci = hcd_to_ohci(hcd);
90 int result; 90 int result;
91 u32 rh_a; 91 u32 rh_a;
@@ -171,7 +171,7 @@ static int ohci_da8xx_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
171 u16 wIndex, char *buf, u16 wLength) 171 u16 wIndex, char *buf, u16 wLength)
172{ 172{
173 struct device *dev = hcd->self.controller; 173 struct device *dev = hcd->self.controller;
174 struct da8xx_ohci_root_hub *hub = dev->platform_data; 174 struct da8xx_ohci_root_hub *hub = dev_get_platdata(dev);
175 int temp; 175 int temp;
176 176
177 switch (typeReq) { 177 switch (typeReq) {
@@ -292,7 +292,7 @@ static const struct hc_driver ohci_da8xx_hc_driver = {
292static int usb_hcd_da8xx_probe(const struct hc_driver *driver, 292static int usb_hcd_da8xx_probe(const struct hc_driver *driver,
293 struct platform_device *pdev) 293 struct platform_device *pdev)
294{ 294{
295 struct da8xx_ohci_root_hub *hub = pdev->dev.platform_data; 295 struct da8xx_ohci_root_hub *hub = dev_get_platdata(&pdev->dev);
296 struct usb_hcd *hcd; 296 struct usb_hcd *hcd;
297 struct resource *mem; 297 struct resource *mem;
298 int error, irq; 298 int error, irq;
@@ -380,7 +380,7 @@ err0:
380static inline void 380static inline void
381usb_hcd_da8xx_remove(struct usb_hcd *hcd, struct platform_device *pdev) 381usb_hcd_da8xx_remove(struct usb_hcd *hcd, struct platform_device *pdev)
382{ 382{
383 struct da8xx_ohci_root_hub *hub = pdev->dev.platform_data; 383 struct da8xx_ohci_root_hub *hub = dev_get_platdata(&pdev->dev);
384 384
385 hub->ocic_notify(NULL); 385 hub->ocic_notify(NULL);
386 usb_remove_hcd(hcd); 386 usb_remove_hcd(hcd);