]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: st95hf: Make spi remove() callback return zero
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 19 Oct 2021 20:49:16 +0000 (22:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 13:41:20 +0000 (14:41 +0100)
commitbb4fe9f8f8b5a4dc3cdb7adf43574343f1660577
tree5a4acdbf1474685864e8b96b7068ba0b8cf61863
parentb5f2a80ea03f91d5e820b278a3fc1eb78cd78b83
nfc: st95hf: Make spi remove() callback return zero

If something goes wrong in the remove callback, returning an error code
just results in an error message. The device still disappears.

So don't skip disabling the regulator in st95hf_remove() if resetting
the controller via spi fails. Also don't return an error code which just
results in two error messages.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/st95hf/core.c