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
aspenite.c
avengers_lite.c
brownstone.c
clock-mmp2.c
clock-pxa168.c
clock-pxa910.c
clock.c
clock.h
common.c
common.h
cputype.h
devices.c
devices.h
flint.c
gplugd.c
irqs.h
jasper.c
Kconfig
Makefile
mfp-mmp2.h
mfp-pxa168.h
mfp-pxa910.h
mfp.h
mmp2-dt.c
mmp2.c
mmp2.h
mmp-dt.c
pm-mmp2.c
pm-mmp2.h
pm-pxa910.c
pm-pxa910.h
pxa168.c
pxa168.h
pxa910.c
pxa910.h
regs-apbc.h
regs-apmu.h
regs-icu.h
regs-timers.h
regs-usb.h
sram.c
tavorevb.c
teton_bga.c
teton_bga.h
time.c
ttc_dkb.c