diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-10-06 11:01:27 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-10-06 11:01:27 -0400 |
commit | 907bc6c7fc7071b00083fc11e510e47dd93df45d (patch) | |
tree | 0697a608561522c00da9e1814974a2eb051bb96d /sound/aoa/codecs/tas.c | |
parent | d2b247a8be57647d1745535acd58169fbcbe431a (diff) | |
parent | 2a0f5cb32772e9a9560209e241a80bfbbc31dbc3 (diff) |
Merge branch 'for-2.6.32' into for-2.6.33
Diffstat (limited to 'sound/aoa/codecs/tas.c')
-rw-r--r-- | sound/aoa/codecs/tas.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/aoa/codecs/tas.c b/sound/aoa/codecs/tas.c index f0ebc971c686..1dd66ddffcaf 100644 --- a/sound/aoa/codecs/tas.c +++ b/sound/aoa/codecs/tas.c | |||
@@ -897,6 +897,15 @@ static int tas_create(struct i2c_adapter *adapter, | |||
897 | client = i2c_new_device(adapter, &info); | 897 | client = i2c_new_device(adapter, &info); |
898 | if (!client) | 898 | if (!client) |
899 | return -ENODEV; | 899 | return -ENODEV; |
900 | /* | ||
901 | * We know the driver is already loaded, so the device should be | ||
902 | * already bound. If not it means binding failed, and then there | ||
903 | * is no point in keeping the device instantiated. | ||
904 | */ | ||
905 | if (!client->driver) { | ||
906 | i2c_unregister_device(client); | ||
907 | return -ENODEV; | ||
908 | } | ||
900 | 909 | ||
901 | /* | 910 | /* |
902 | * Let i2c-core delete that device on driver removal. | 911 | * Let i2c-core delete that device on driver removal. |