android_kernel_xiaomi_sm7250/arch/arm/mach-mmp
Uwe Kleine-König 609d47b365 ARM: mmp: Fix failure to remove sram device
[ Upstream commit 4036b29a146b2749af3bb213b003eb69f3e5ecc4 ]

Make sure in .probe() to set driver data before the function is left to
make it possible in .remove() to undo the actions done.

This fixes a potential memory leak and stops returning an error code in
.remove() that is ignored by the driver core anyhow.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-15 14:14:56 +02:00
..
addr-map.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
aspenite.c mtd: nand: remove useless fields from pxa3xx NAND platform data 2018-03-02 21:51:41 +01:00
avengers_lite.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
brownstone.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
clock-mmp2.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clock-pxa168.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clock-pxa910.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
clock.c ARM: mmp: let clk_disable() return immediately if clk is NULL 2017-03-30 17:38:34 +02:00
clock.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
common.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
common.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cputype.h ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt 2018-12-19 19:19:51 +01:00
devices.c ARM: mmp: mark usb_dma_mask as __maybe_unused 2017-07-27 22:57:49 +02:00
devices.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
flint.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
gplugd.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
irqs.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
jasper.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
Kconfig ARM: do away with ARCH_[WANT_OPTIONAL|REQUIRE]_GPIOLIB 2016-06-03 12:18:13 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mfp-mmp2.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mfp-pxa168.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mfp-pxa910.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mfp.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mmp2-dt.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00
mmp2.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
mmp2.h ARM: pxa: move header file out of I2C realm 2017-11-28 22:49:30 +01:00
mmp-dt.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00
pm-mmp2.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
pm-mmp2.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
pm-pxa910.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
pm-pxa910.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
pxa168.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
pxa168.h ARM: pxa: move header file out of I2C realm 2017-11-28 22:49:30 +01:00
pxa910.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
pxa910.h ARM: pxa: move header file out of I2C realm 2017-11-28 22:49:30 +01:00
regs-apbc.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
regs-apmu.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
regs-icu.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
regs-timers.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
regs-usb.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
sram.c ARM: mmp: Fix failure to remove sram device 2022-04-15 14:14:56 +02:00
tavorevb.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
teton_bga.c ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
teton_bga.h ARM: mmp: make all header files local 2015-12-01 21:44:30 +01:00
time.c clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
ttc_dkb.c mtd: nand: remove useless fields from pxa3xx NAND platform data 2018-03-02 21:51:41 +01:00