iio: magnetometer: fix hal NULL ptr
authorErik Lilliebjerg <elilliebjerg@nvidia.com>
Tue, 9 Feb 2016 15:01:39 +0000 (08:01 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 10 Feb 2016 01:14:00 +0000 (17:14 -0800)
commit3ca8ea29e446ac0250f4c2bf43f87f0176354c06
tree58e057e8963557b2a2d16656a7d74257a4550729
parentcd183ff25f63913dd2da54432c433614318083f0
iio: magnetometer: fix hal NULL ptr

- Fix HAL NULL pointer by setting default HAL pointer even when device isn't
  found.

Bug 1727708

Change-Id: I368744922c5b1750118c1375a36ec0479e97ccde
Signed-off-by: Erik Lilliebjerg <elilliebjerg@nvidia.com>
Reviewed-on: http://git-master/r/1009959
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Steve Rogers <srogers@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
drivers/iio/magnetometer/nvi_ak89xx.c