diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-06 07:52:20 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-05-15 10:22:49 -0400 |
commit | a9b1bddc7a171c89b4fd4c132202b5b2118f3905 (patch) | |
tree | 668e9f2c6ab26c64d1e54f5c86a30c9f9a87edd7 /drivers/usb | |
parent | c8a0b5c687bfc3fce4bcc6a1e7c354f40b38bbc9 (diff) |
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 <sachin.kamat@linaro.org>
Cc: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/phy/phy-gpio-vbus-usb.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-gpio-vbus-usb.c b/drivers/usb/phy/phy-gpio-vbus-usb.c index 4c76074e518d..1d32af2ee403 100644 --- a/drivers/usb/phy/phy-gpio-vbus-usb.c +++ b/drivers/usb/phy/phy-gpio-vbus-usb.c | |||
@@ -343,7 +343,6 @@ err_irq: | |||
343 | gpio_free(pdata->gpio_pullup); | 343 | gpio_free(pdata->gpio_pullup); |
344 | gpio_free(pdata->gpio_vbus); | 344 | gpio_free(pdata->gpio_vbus); |
345 | err_gpio: | 345 | err_gpio: |
346 | platform_set_drvdata(pdev, NULL); | ||
347 | kfree(gpio_vbus->phy.otg); | 346 | kfree(gpio_vbus->phy.otg); |
348 | kfree(gpio_vbus); | 347 | kfree(gpio_vbus); |
349 | return err; | 348 | return err; |
@@ -365,7 +364,6 @@ static int __exit gpio_vbus_remove(struct platform_device *pdev) | |||
365 | if (gpio_is_valid(pdata->gpio_pullup)) | 364 | if (gpio_is_valid(pdata->gpio_pullup)) |
366 | gpio_free(pdata->gpio_pullup); | 365 | gpio_free(pdata->gpio_pullup); |
367 | gpio_free(gpio); | 366 | gpio_free(gpio); |
368 | platform_set_drvdata(pdev, NULL); | ||
369 | kfree(gpio_vbus->phy.otg); | 367 | kfree(gpio_vbus->phy.otg); |
370 | kfree(gpio_vbus); | 368 | kfree(gpio_vbus); |
371 | 369 | ||