]> www.infradead.org Git - users/jedix/linux-maple.git/commit
eeprom: ee1004: Use devres for bus data cleanup
authorArmin Wolf <W_Armin@gmx.de>
Tue, 25 Jun 2024 06:34:58 +0000 (08:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jul 2024 10:02:56 +0000 (12:02 +0200)
commit55d57ef6fa97ca631d393cccc641cbe1b16cc382
tree72793958076b89ce9ae5829442f999fd839477d5
parent14c4dc8bb620c4c75b06d267a542eb1ac44cdd29
eeprom: ee1004: Use devres for bus data cleanup

Use devm_add_action_or_reset() to clean up the bus data at
driver removal or when an error occurs during probe.
This will allow us to use other devres-based APIs later.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240625063459.429953-1-W_Armin@gmx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/eeprom/ee1004.c