iio: proximity: Fix auto-detect unload
authorErik Lilliebjerg <elilliebjerg@nvidia.com>
Fri, 8 May 2015 15:52:26 +0000 (08:52 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 15 May 2015 21:44:59 +0000 (14:44 -0700)
commit182edccee8122fdee48379f1f6639a3e24b24844
treee8121ebe3fd54945ecb92125a12e5bc763d115b9
parent15cb4036d7f1f588b565c6e4cb2301d54d044cf8
iio: proximity: Fix auto-detect unload

- In the previous version, if the device wasn't found, the early exit
  encountered a NULL pointer during driver unload.
- Added DT documentation for the configuration options of this driver.

Bug 1633231

Change-Id: I9ba8a5efd5e2fc8d874d72d8fff35a8a4526c929
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/740681
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Tested-by: Robert Collins <rcollins@nvidia.com>
drivers/iio/proximity/nvs_iqs2x3.c