diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-05-27 18:23:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-27 12:26:31 -0700 |
commit | 12823178332216daa76512d256dbdacb5ba76ea7 (patch) | |
tree | 75e15d3492c61a75591e422eb88ce6c8fcd06a41 /drivers | |
parent | dacf3eb7f3c1c474a55f7c24eef39011784d558c (diff) | |
download | op-kernel-dev-12823178332216daa76512d256dbdacb5ba76ea7.zip op-kernel-dev-12823178332216daa76512d256dbdacb5ba76ea7.tar.gz |
greybus: hd: fix gb_hd_release tracepoint
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/greybus/hd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/hd.c b/drivers/staging/greybus/hd.c index 5238825..12ac0b6 100644 --- 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); |