asoc: max98095: probe with no device there fix
authorRhyland Klein <rklein@nvidia.com>
Wed, 6 Jun 2012 19:28:40 +0000 (15:28 -0400)
committerSimone Willett <swillett@nvidia.com>
Tue, 12 Jun 2012 00:31:49 +0000 (17:31 -0700)
commit8e83ca8bde2e1c42df08f37840226c9d07d4af69
tree7eaed6ece90ac389a41c98f136acb449a7cb2739
parentb901b56e0c0573ce30393836e4078ca78beffca0
asoc: max98095: probe with no device there fix

There is path through which registering a card will fail to probe,
but that error code is not propogated back to the tegra machine
driver. To catch this case in the machine driver's probe routine,
we need to ensure that after registering the card, the card is
instantiated and fail probe if not.

Change-Id: I64ba952685ef193a3b248502943771c518396808
Signed-off-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-on: http://git-master/r/106837
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/tegra/tegra_max98095.c