Use the newly introduced ci_hdrc_get_platdata function to help setup the chipidea internal ci_hdrc_platform_data structure. Signed-off-by: Antoine Tenart <antoine.tenart@xxxxxxxxxxxxxxxxxx> --- drivers/usb/chipidea/ci_hdrc_zevio.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/ci_hdrc_zevio.c b/drivers/usb/chipidea/ci_hdrc_zevio.c index 3bf6489ef5ec..d50a6d9038bd 100644 --- a/drivers/usb/chipidea/ci_hdrc_zevio.c +++ b/drivers/usb/chipidea/ci_hdrc_zevio.c @@ -25,12 +25,16 @@ static struct ci_hdrc_platform_data ci_hdrc_zevio_platdata = { static int ci_hdrc_zevio_probe(struct platform_device *pdev) { struct platform_device *ci_pdev; + struct ci_hdrc_platform_data *ci_pdata; dev_dbg(&pdev->dev, "ci_hdrc_zevio_probe\n"); + ci_pdata = ci_hdrc_get_platdata(&pdev->dev, &ci_hdrc_zevio_platdata); + if (IS_ERR(ci_pdata)) + return PTR_ERR(ci_pdata); + ci_pdev = ci_hdrc_add_device(&pdev->dev, - pdev->resource, pdev->num_resources, - &ci_hdrc_zevio_platdata); + pdev->resource, pdev->num_resources, ci_pdata); if (IS_ERR(ci_pdev)) { dev_err(&pdev->dev, "ci_hdrc_add_device failed!\n"); -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html