Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0742459 authored by Jingoo Han's avatar Jingoo Han Committed by Felipe Balbi
Browse files

usb: renesas: use dev_get_platdata()



Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent c1a7d67c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -416,7 +416,7 @@ static int usbhsc_drvcllbck_notify_hotplug(struct platform_device *pdev)
 */
 */
static int usbhs_probe(struct platform_device *pdev)
static int usbhs_probe(struct platform_device *pdev)
{
{
	struct renesas_usbhs_platform_info *info = pdev->dev.platform_data;
	struct renesas_usbhs_platform_info *info = dev_get_platdata(&pdev->dev);
	struct renesas_usbhs_driver_callback *dfunc;
	struct renesas_usbhs_driver_callback *dfunc;
	struct usbhs_priv *priv;
	struct usbhs_priv *priv;
	struct resource *res, *irq_res;
	struct resource *res, *irq_res;
@@ -558,7 +558,7 @@ static int usbhs_probe(struct platform_device *pdev)
static int usbhs_remove(struct platform_device *pdev)
static int usbhs_remove(struct platform_device *pdev)
{
{
	struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
	struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
	struct renesas_usbhs_platform_info *info = pdev->dev.platform_data;
	struct renesas_usbhs_platform_info *info = dev_get_platdata(&pdev->dev);
	struct renesas_usbhs_driver_callback *dfunc = &info->driver_callback;
	struct renesas_usbhs_driver_callback *dfunc = &info->driver_callback;


	dev_dbg(&pdev->dev, "usb remove\n");
	dev_dbg(&pdev->dev, "usb remove\n");