OSDN Git Service

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)
commitb2fe288eac7247f83b52377b4134ecc5cd856bf2
tree0444295e1dd66c5e9dea119e0b23e429c695f63f
parentd2d2e6456ebccb5d31163dcc3191d83183bbd0b5
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