summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-28 08:26:19 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-07-12 04:05:11 +0200
commit265aac26bcd4a2a79d08d2bdcc08cf1653fd4248 (patch)
tree0ea9f143ebe0341b91e361a81791abce1f594a0f /drivers/clocksource
parentfsi: master-gpio: Remove "GPIO" prefix on some definitions (diff)
downloadlinux-265aac26bcd4a2a79d08d2bdcc08cf1653fd4248.tar.xz
linux-265aac26bcd4a2a79d08d2bdcc08cf1653fd4248.zip
fsi: Don't use device_unregister() in fsi_master_register()
In the error path of fsi_master_register(), we currently use device_unregister(). This will cause the last reference to the structure to be dropped, thus freeing the enclosing structure, which isn't what the callers want. Use device_del() instead so that we return to the caller with a refcount of 1. The caller can then assume that it must use put_device() after a call to fsi_master_register() regardless of whether the latter suceeded or failed. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'drivers/clocksource')
0 files changed, 0 insertions, 0 deletions