Uwe Kleine-König 4036b29a14
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>
2022-02-25 16:38:34 +01:00
..
2019-10-17 16:36:10 +02:00
2019-10-17 16:36:10 +02:00
2020-05-12 20:28:03 -07:00
2019-10-17 16:36:11 +02:00
2019-10-17 16:36:11 +02:00
2020-05-12 20:28:03 -07:00
2018-11-30 15:40:22 -08:00
2020-05-12 20:28:03 -07:00