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

Commit e6e93ccf authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman
Browse files

usb: gadget: mv_u3d_core: 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: Yu Xu <yuxu@marvell.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b342f096
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -1786,8 +1786,6 @@ static int mv_u3d_remove(struct platform_device *dev)


	clk_put(u3d->clk);
	clk_put(u3d->clk);


	platform_set_drvdata(dev, NULL);

	kfree(u3d);
	kfree(u3d);


	return 0;
	return 0;
@@ -1997,7 +1995,6 @@ static int mv_u3d_probe(struct platform_device *dev)
err_get_cap_regs:
err_get_cap_regs:
err_get_clk:
err_get_clk:
	clk_put(u3d->clk);
	clk_put(u3d->clk);
	platform_set_drvdata(dev, NULL);
	kfree(u3d);
	kfree(u3d);
err_alloc_private:
err_alloc_private:
err_pdata:
err_pdata: