diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 06:59:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-31 20:53:50 -0400 |
commit | d4f09e28d7bc5c1adde8229b1e89401f23fb44f9 (patch) | |
tree | 839932c47eb570a24b6758a4829b81839310395b /drivers/usb/host/ohci-pxa27x.c | |
parent | 4fae6f0fa86f92e6bc7429371b1e177ad0aaac66 (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-pxa27x.c')
-rw-r--r-- | drivers/usb/host/ohci-pxa27x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 3a9c01d8b79c..93371a235e82 100644 --- a/drivers/usb/host/ohci-pxa27x.c +++ b/drivers/usb/host/ohci-pxa27x.c | |||
@@ -219,7 +219,7 @@ static int pxa27x_start_hc(struct pxa27x_ohci *ohci, struct device *dev) | |||
219 | struct pxaohci_platform_data *inf; | 219 | struct pxaohci_platform_data *inf; |
220 | uint32_t uhchr; | 220 | uint32_t uhchr; |
221 | 221 | ||
222 | inf = dev->platform_data; | 222 | inf = dev_get_platdata(dev); |
223 | 223 | ||
224 | clk_prepare_enable(ohci->clk); | 224 | clk_prepare_enable(ohci->clk); |
225 | 225 | ||
@@ -256,7 +256,7 @@ static void pxa27x_stop_hc(struct pxa27x_ohci *ohci, struct device *dev) | |||
256 | struct pxaohci_platform_data *inf; | 256 | struct pxaohci_platform_data *inf; |
257 | uint32_t uhccoms; | 257 | uint32_t uhccoms; |
258 | 258 | ||
259 | inf = dev->platform_data; | 259 | inf = dev_get_platdata(dev); |
260 | 260 | ||
261 | if (cpu_is_pxa3xx()) | 261 | if (cpu_is_pxa3xx()) |
262 | pxa3xx_u2d_stop_hc(&ohci_to_hcd(&ohci->ohci)->self); | 262 | pxa3xx_u2d_stop_hc(&ohci_to_hcd(&ohci->ohci)->self); |
@@ -364,7 +364,7 @@ int usb_hcd_pxa27x_probe (const struct hc_driver *driver, struct platform_device | |||
364 | if (retval) | 364 | if (retval) |
365 | return retval; | 365 | return retval; |
366 | 366 | ||
367 | inf = pdev->dev.platform_data; | 367 | inf = dev_get_platdata(&pdev->dev); |
368 | 368 | ||
369 | if (!inf) | 369 | if (!inf) |
370 | return -ENODEV; | 370 | return -ENODEV; |
@@ -577,7 +577,7 @@ static int ohci_hcd_pxa27x_drv_resume(struct device *dev) | |||
577 | { | 577 | { |
578 | struct usb_hcd *hcd = dev_get_drvdata(dev); | 578 | struct usb_hcd *hcd = dev_get_drvdata(dev); |
579 | struct pxa27x_ohci *ohci = to_pxa27x_ohci(hcd); | 579 | struct pxa27x_ohci *ohci = to_pxa27x_ohci(hcd); |
580 | struct pxaohci_platform_data *inf = dev->platform_data; | 580 | struct pxaohci_platform_data *inf = dev_get_platdata(dev); |
581 | int status; | 581 | int status; |
582 | 582 | ||
583 | if (time_before(jiffies, ohci->ohci.next_statechange)) | 583 | if (time_before(jiffies, ohci->ohci.next_statechange)) |