浏览代码

Merge remote-tracking branch 'asoc/topic/samsung' into asoc-next

Mark Brown 11 年之前
父节点
当前提交
d092232793
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/soc/samsung/i2s.c

+ 1 - 1
sound/soc/samsung/i2s.c

@@ -1068,7 +1068,7 @@ static struct i2s_dai *i2s_alloc_dai(struct platform_device *pdev, bool sec)
 		dev_set_drvdata(&i2s->pdev->dev, i2s);
 		dev_set_drvdata(&i2s->pdev->dev, i2s);
 	} else {	/* Create a new platform_device for Secondary */
 	} else {	/* Create a new platform_device for Secondary */
 		i2s->pdev = platform_device_alloc("samsung-i2s-sec", -1);
 		i2s->pdev = platform_device_alloc("samsung-i2s-sec", -1);
-		if (IS_ERR(i2s->pdev))
+		if (!i2s->pdev)
 			return NULL;
 			return NULL;
 
 
 		i2s->pdev->dev.parent = &pdev->dev;
 		i2s->pdev->dev.parent = &pdev->dev;