asoc: codecs: max98088: check for revision id
authorNikesh Oswal <noswal@nvidia.com>
Wed, 14 Mar 2012 12:18:09 +0000 (17:18 +0530)
committerSimone Willett <swillett@nvidia.com>
Fri, 23 Mar 2012 21:00:51 +0000 (14:00 -0700)
commitc7b93d42d9943b40774d9f3405f89dd74740e2ee
tree7b93783b30d9a16961f43cc86212f4f054b871be
parent62e8fcd20e27244fcb532e0de9ef86bb66ae83b1
asoc: codecs: max98088: check for revision id

check for revision id, it must be 0x40 as per the datasheet,
if its not 0x40 then dont allow the card to register by failing
in the codec probe. This functionality will be required when the
same board support multiple codecs. Also register the irq only
after validating the codec.

Change-Id: I8553b85d534428c7137ec2d03e2f814b898609a6
Signed-off-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-on: http://git-master/r/90061
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/codecs/max98088.c