acrn-kernel/arch/powerpc/platforms/83xx
Yang Yingliang 983e289747 powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()
[ Upstream commit 4d0eea4152 ]

If platform_device_add() is not called or failed, it can not call
platform_device_del() to clean up memory, it should call
platform_device_put() in error case.

Fixes: 26f6cb9993 ("[POWERPC] fsl_soc: add support for fsl_spi")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221029111626.429971-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:51 +01:00
..
Kconfig Kconfig file consolidation for v4.21 2018-12-29 13:40:29 -08:00
Makefile powerpc: remove retired sbc834x support 2018-05-03 22:32:30 +10:00
asp834x.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
km83xx.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mcu_mpc8349emitx.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
misc.c powerpc/32: Remove the 'nobats' kernel parameter 2022-06-29 16:59:06 +10:00
mpc83xx.h powerpc/83xx: Add __init attribute to eligible functions 2021-12-23 22:33:18 +11:00
mpc830x_rdb.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc831x_rdb.c powerpc/83xx: Move PHB discovery 2021-02-09 00:02:06 +11:00
mpc832x_mds.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc832x_rdb.c powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe() 2022-12-31 13:32:51 +01:00
mpc834x_itx.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc834x_mds.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc836x_mds.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc836x_rdk.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
mpc837x_mds.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc837x_rdb.c powerpc/83xx: Add __init attribute to eligible functions 2021-12-23 22:33:18 +11:00
suspend-asm.S powerpc/83xx: Blacklist mpc83xx_deep_resume() for kprobe 2020-06-02 20:59:09 +10:00
suspend.c powerpc/platforms/83xx/suspend: Remove write-only global variable 2022-07-28 16:22:14 +10:00
usb.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00