Thread (43 messages) 43 messages, 7 authors, 2016-04-14

[PATCH v2 10/11] usb: musb: da8xx: Use devm in probe

From: Sergei Shtylyov <hidden>
Date: 2016-03-17 11:07:49
Also in: linux-devicetree, lkml

Hello.

On 3/17/2016 5:26 AM, David Lechner wrote:
quoted hunk ↗ jump to hunk
Simplify things a bit by using devm functions where possible.

Signed-off-by: David Lechner <david@lechnology.com>
---

v2 changes: This is part of a previous patch that was split. No changes from
previous version.


  drivers/usb/musb/da8xx.c | 28 ++++++++--------------------
  1 file changed, 8 insertions(+), 20 deletions(-)
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c
index b03d3b8..50f07a5 100644
--- a/drivers/usb/musb/da8xx.c
+++ b/drivers/usb/musb/da8xx.c
@@ -489,32 +489,27 @@ static int da8xx_probe(struct platform_device *pdev)
  	struct platform_device		*musb;
  	struct da8xx_glue		*glue;
  	struct platform_device_info	pinfo;
-	struct clk			*clk;
    I wouldn't remove this variable to minimize the patch.

[...]

MBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help