diff options
author | Gavin Shan <gshan@redhat.com> | 2020-09-22 15:04:15 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-09-28 22:52:22 +0200 |
commit | 63627cae41e33763ca967bd2bb8cfe5d281bfe64 (patch) | |
tree | e2786042052a83057368dd1b892731471185bf3e /drivers/vdpa/Kconfig | |
parent | firmware: arm_sdei: Avoid nested statements in sdei_init() (diff) | |
download | linux-63627cae41e33763ca967bd2bb8cfe5d281bfe64.tar.xz linux-63627cae41e33763ca967bd2bb8cfe5d281bfe64.zip |
firmware: arm_sdei: Unregister driver on error in sdei_init()
The SDEI platform device is created from device-tree node or ACPI
(SDEI) table. For the later case, the platform device is created
explicitly by this module. It'd better to unregister the driver on
failure to create the device to keep the symmetry. The driver, owned
by this module, isn't needed if the device isn't existing.
Besides, the errno (@ret) should be updated accordingly in this
case.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200922130423.10173-6-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/vdpa/Kconfig')
0 files changed, 0 insertions, 0 deletions