projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dacf3eb
)
greybus: hd: fix gb_hd_release tracepoint
author
Johan Hovold
<johan@hovoldconsulting.com>
Fri, 27 May 2016 16:23:01 +0000
(18:23 +0200)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Fri, 27 May 2016 19:26:31 +0000
(12:26 -0700)
The recently added gb_hd_release tracepoint was added to the wrong
function.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/hd.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/hd.c
b/drivers/staging/greybus/hd.c
index 52388257d3d2f97c3130eea8469d2c4a829bff3f..12ac0b6584d8a9f7b2181a1f2e2f159593e73ab3 100644
(file)
--- a/
drivers/staging/greybus/hd.c
+++ b/
drivers/staging/greybus/hd.c
@@
-95,14
+95,14
@@
void gb_hd_cport_release(struct gb_host_device *hd, u16 cport_id)
}
ida_simple_remove(&hd->cport_id_map, cport_id);
-
- trace_gb_hd_release(hd);
}
static void gb_hd_release(struct device *dev)
{
struct gb_host_device *hd = to_gb_host_device(dev);
+ trace_gb_hd_release(hd);
+
if (hd->svc)
gb_svc_put(hd->svc);
ida_simple_remove(&gb_hd_bus_id_map, hd->bus_id);