diff options
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/tegra-alt/tegra_vcm30t124_alt.c | 2 | ||||
-rw-r--r-- | sound/soc/tegra-alt/tegra_vcm30t124_b00_alt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/tegra-alt/tegra_vcm30t124_alt.c b/sound/soc/tegra-alt/tegra_vcm30t124_alt.c index 750242602827..23cd3099f29b 100644 --- a/sound/soc/tegra-alt/tegra_vcm30t124_alt.c +++ b/sound/soc/tegra-alt/tegra_vcm30t124_alt.c @@ -970,7 +970,7 @@ static int tegra_vcm30t124_driver_probe(struct platform_device *pdev) machine->max9485_client = i2c_new_device(i2c_get_adapter(0), &max9485_info); - if (IS_ERR(machine->max9485_client)) { + if (!machine->max9485_client) { dev_err(&pdev->dev, "cannot get i2c device for max9485\n"); goto err; diff --git a/sound/soc/tegra-alt/tegra_vcm30t124_b00_alt.c b/sound/soc/tegra-alt/tegra_vcm30t124_b00_alt.c index cef83a59c900..67efccd6ef5d 100644 --- a/sound/soc/tegra-alt/tegra_vcm30t124_b00_alt.c +++ b/sound/soc/tegra-alt/tegra_vcm30t124_b00_alt.c @@ -1214,7 +1214,7 @@ static int tegra_vcm30t124_driver_probe(struct platform_device *pdev) machine->max9485_client = i2c_new_device(i2c_get_adapter(0), &max9485_info); - if (IS_ERR(machine->max9485_client)) { + if (!machine->max9485_client) { dev_err(&pdev->dev, "cannot get i2c device for max9485\n"); goto err; |