mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
usb: phy: gpio-vbus-usb: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <[email protected]>
Cc: Philipp Zabel <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
This commit is contained in:
parent
c8a0b5c687
commit
a9b1bddc7a
1 changed files with 0 additions and 2 deletions
|
|
@ -343,7 +343,6 @@ err_irq:
|
|||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue