mirror of https://gitee.com/openkylin/linux.git
renesas_usbhs: use renesas_usbhs_get_info()
We already have renesas_usbhs_get_info() macro. Let's use it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6c51441cd0
commit
f0f14a7a81
|
@ -535,7 +535,7 @@ static struct renesas_usbhs_platform_info *usbhs_parse_dt(struct device *dev)
|
|||
|
||||
static int usbhs_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct renesas_usbhs_platform_info *info = dev_get_platdata(&pdev->dev);
|
||||
struct renesas_usbhs_platform_info *info = renesas_usbhs_get_info(pdev);
|
||||
struct renesas_usbhs_driver_callback *dfunc;
|
||||
struct usbhs_priv *priv;
|
||||
struct resource *res, *irq_res;
|
||||
|
@ -713,7 +713,7 @@ static int usbhs_probe(struct platform_device *pdev)
|
|||
static int usbhs_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct usbhs_priv *priv = usbhs_pdev_to_priv(pdev);
|
||||
struct renesas_usbhs_platform_info *info = dev_get_platdata(&pdev->dev);
|
||||
struct renesas_usbhs_platform_info *info = renesas_usbhs_get_info(pdev);
|
||||
struct renesas_usbhs_driver_callback *dfunc = &info->driver_callback;
|
||||
|
||||
dev_dbg(&pdev->dev, "usb remove\n");
|
||||
|
|
Loading…
Reference in New Issue