summary refs log tree commit diff
path: root/drivers/tty/n_hdlc.c
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2020-05-28 14:41:21 +0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-06-14 12:32:23 +0100
commitd7369ae1f4d7cffa7574d15e1f787dcca184c49d (patch)
tree492aa1633529c5a0ce653453758f49c87e775dbb /drivers/tty/n_hdlc.c
parentf88ecccac4be348bbcc6d056bdbc622a8955c04d (diff)
downloadlinux-d7369ae1f4d7cffa7574d15e1f787dcca184c49d.tar.gz
iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe()
The function iio_device_register() was called in mma8452_probe().
But the function iio_device_unregister() was not called after
a call of the function mma8452_set_freefall_mode() failed.
Thus add the missed function call for one error case.

Fixes: 1a965d405fc6 ("drivers:iio:accel:mma8452: added cleanup provision in case of failure.")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/tty/n_hdlc.c')
0 files changed, 0 insertions, 0 deletions