diff options
author | Jing Xiangfeng <jingxiangfeng@huawei.com> | 2020-11-20 10:49:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-09 21:45:13 +0300 |
commit | 4996b4610767064807d022dd731584f7ff78c309 (patch) | |
tree | 6d0ecf64d7e6d0c4b8502ba37931f024bae91f6c /sound/soc | |
parent | 7fe5bbdd1f43806c1e38e69585d98d956fca43e8 (diff) | |
download | linux-4996b4610767064807d022dd731584f7ff78c309.tar.xz |
staging: olpc_dcon: Do not call platform_device_unregister() in dcon_probe()
In dcon_probe(), when platform_device_add() failes to add the device,
it jumps to call platform_device_unregister() to remove the device,
which is unnecessary. So use platform_device_put() instead.
Fixes: 53c43c5ca133 ("Revert "Staging: olpc_dcon: Remove obsolete driver"")
Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com>
Link: https://lore.kernel.org/r/20201120074932.31871-1-jingxiangfeng@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/soc')
0 files changed, 0 insertions, 0 deletions