kernel: gpio-nct5104d: use devm
authorRosen Penev <rosenp@gmail.com>
Sun, 22 Sep 2024 17:41:24 +0000 (10:41 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 20 Oct 2024 11:52:45 +0000 (13:52 +0200)
commitfcd935a5e473fbfdf2ed65f9704bf001faa079b2
tree3facd24128be88ed614e11983164f841d750cb1a
parent6a1d03280f9080c2a57442b4f857aa41429bfc63
kernel: gpio-nct5104d: use devm

Allows removal of the remove function by letting devm handle everything.

Avoids gotos as well.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/16507
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/gpio-nct5104d/Makefile
package/kernel/gpio-nct5104d/src/gpio-nct5104d.c