diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-07-26 23:01:58 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-02-25 18:38:34 +0300 |
commit | 4036b29a146b2749af3bb213b003eb69f3e5ecc4 (patch) | |
tree | ef7e9da318c4d99a05a8483e08b6a1c197779926 /arch/arm/mach-mmp/irqs.h | |
parent | 022e5220f2721d00610c0bf2926e8baa4e5fb4e2 (diff) | |
download | linux-4036b29a146b2749af3bb213b003eb69f3e5ecc4.tar.xz |
ARM: mmp: Fix failure to remove sram device
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>
Diffstat (limited to 'arch/arm/mach-mmp/irqs.h')
0 files changed, 0 insertions, 0 deletions