]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: nfcmrvl: free reset gpio
authorVincent Cuissard <cuissard@marvell.com>
Tue, 3 Nov 2015 18:19:34 +0000 (19:19 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 4 Nov 2015 23:32:25 +0000 (00:32 +0100)
commitfb994e00ac170171a4ddb295bef94449f2ac3f52
tree0444295e1dd66c5e9dea119e0b23e429c695f63f
parentf793037cc7103fb2a9f9a4ae075f69a371ecd432
NFC: nfcmrvl: free reset gpio

Reset GPIO shall be freed by the driver since the device used
in devm_ calls can be still valid on unregister.

If user removes the module and inserts it again, the devm_gpio_request
will fail because the underlying physical device (e.g i2c) was not
removed so the device management won't have freed the gpio.

Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcmrvl/main.c