[PATCH 4/7] usb: gadget: f_uac2: Remove redundant platform_set_drvdata()

2013-05-06 Thread Sachin Kamat
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.ka...@linaro.org
Cc: Jaswinder Singh jaswinder.si...@linaro.org
---
 drivers/usb/gadget/f_uac2.c |2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/gadget/f_uac2.c b/drivers/usb/gadget/f_uac2.c
index c7468b6..03c1fb6 100644
--- a/drivers/usb/gadget/f_uac2.c
+++ b/drivers/usb/gadget/f_uac2.c
@@ -456,8 +456,6 @@ static int snd_uac2_remove(struct platform_device *pdev)
 {
struct snd_card *card = platform_get_drvdata(pdev);
 
-   platform_set_drvdata(pdev, NULL);
-
if (card)
return snd_card_free(card);
 
-- 
1.7.9.5

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 4/7] usb: gadget: f_uac2: Remove redundant platform_set_drvdata()

2013-05-06 Thread Jassi Brar
On 6 May 2013 17:07, Sachin Kamat sachin.ka...@linaro.org wrote:
 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.ka...@linaro.org
 Cc: Jaswinder Singh jaswinder.si...@linaro.org

Acked-by: Jaswinder Singh jaswinder.si...@linaro.org
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html