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

Commit a9b1bddc authored by Sachin Kamat's avatar Sachin Kamat Committed by Felipe Balbi
Browse files

usb: phy: gpio-vbus-usb: Remove redundant platform_set_drvdata()



Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent c8a0b5c6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -343,7 +343,6 @@ static int __init gpio_vbus_probe(struct platform_device *pdev)
		gpio_free(pdata->gpio_pullup);
	gpio_free(pdata->gpio_vbus);
err_gpio:
	platform_set_drvdata(pdev, NULL);
	kfree(gpio_vbus->phy.otg);
	kfree(gpio_vbus);
	return err;
@@ -365,7 +364,6 @@ static int __exit gpio_vbus_remove(struct platform_device *pdev)
	if (gpio_is_valid(pdata->gpio_pullup))
		gpio_free(pdata->gpio_pullup);
	gpio_free(gpio);
	platform_set_drvdata(pdev, NULL);
	kfree(gpio_vbus->phy.otg);
	kfree(gpio_vbus);