audio: a2220: Handle probe failure
authorVijay Mali <vmali@nvidia.com>
Thu, 4 Apr 2013 15:15:00 +0000 (20:15 +0530)
committerMrutyunjay Sawant <msawant@nvidia.com>
Mon, 8 Apr 2013 18:02:05 +0000 (11:02 -0700)
commit2ff268712b9cbc6b6ef17a1d06748dd2c985dddc
treea64109a48a5aebf5e7dac2ef6e249ac463589ea6
parent39c789d4dda4c041f565fe52d0476e52e719e49d
audio: a2220: Handle probe failure

- Avoid unwanted i2c write calls if probe fails.
- Add seperate function for sending boot message.
- Reduce i2c retry count to 1.
- This ensures graceful exit in case of failure.
- Boot log does not show lot of i2c failure messages after the fix.

Bug 1263841

Change-Id: I8a5f4c335e42aea69647f50afc48494084967825
Signed-off-by: Vijay Mali <vmali@nvidia.com>
Reviewed-on: http://git-master/r/216528
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
drivers/misc/a2220.c
include/linux/a2220.h