|
|
@@ -258,7 +258,7 @@ static int xway_stp_probe(struct platform_device *pdev)
|
|
|
|
|
|
ret = xway_stp_hw_init(chip);
|
|
|
if (!ret)
|
|
|
- ret = gpiochip_add_data(&chip->gc, chip);
|
|
|
+ ret = devm_gpiochip_add_data(&pdev->dev, &chip->gc, chip);
|
|
|
|
|
|
if (!ret)
|
|
|
dev_info(&pdev->dev, "Init done\n");
|