commit | a21fdd443a021cf52a71d38c6546599147c5d1c5 | [log] [tgz] |
---|---|---|
author | Ashay Jaiswal <ashayj@codeaurora.org> | Tue Feb 25 13:53:19 2014 +0530 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Thu Feb 27 10:47:40 2014 -0800 |
tree | 4756f83f53317409feae3e1d6481e48997a01088 | |
parent | d79e59cab2a0880483e31966186cfbaf18609fb7 [diff] |
gpio: qpnp-pin: Fix probe cleanup code In case of probe failure cleanup code un-registers gpio chip without checking if chip is registered with the gpio framework. Add a variable to maintain the gpio chip registration status and un-register gpio chip only if the variable is set. Change-Id: I5453fa43e1ff63b590a36151100bbfd4822a73f1 Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org> (cherry picked from commit 68b3121549db24c90694b2054b9506df6249b9f3)