summaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2022-04-29 16:23:00 +0200
committerArnd Bergmann <arnd@arndb.de>2022-04-29 16:23:02 +0200
commitc755ad9810e7cb59d9363ddba9f3efd36369669b (patch)
treef30ebdf21dac036d945a05de6694a59d1e8252f7 /drivers/bus
parent2f477ee3ed92d7b3786778399cf3e08007721c0f (diff)
parentfff8c10368e64e7f8960f149375c12ca5f3b30af (diff)
downloadlinux-c755ad9810e7cb59d9363ddba9f3efd36369669b.tar.gz
linux-c755ad9810e7cb59d9363ddba9f3efd36369669b.tar.bz2
linux-c755ad9810e7cb59d9363ddba9f3efd36369669b.zip
Merge tag 'sunxi-fixes-for-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into arm/fixes
Fix return value in RSB bus driver * tag 'sunxi-fixes-for-5.18-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux: bus: sunxi-rsb: Fix the return value of sunxi_rsb_device_create() Link: https://lore.kernel.org/r/Ymbkd+/dDmRJz66w@kista.localdomain Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/sunxi-rsb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c
index 4566e730ef2b..60b082fe2ed0 100644
--- a/drivers/bus/sunxi-rsb.c
+++ b/drivers/bus/sunxi-rsb.c
@@ -227,6 +227,8 @@ static struct sunxi_rsb_device *sunxi_rsb_device_create(struct sunxi_rsb *rsb,
dev_dbg(&rdev->dev, "device %s registered\n", dev_name(&rdev->dev));
+ return rdev;
+
err_device_add:
put_device(&rdev->dev);