|
@@ -1846,11 +1846,8 @@ static int coda_probe(struct platform_device *pdev)
|
|
int ret, irq;
|
|
int ret, irq;
|
|
|
|
|
|
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
|
|
dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
|
|
- if (!dev) {
|
|
|
|
- dev_err(&pdev->dev, "Not enough memory for %s\n",
|
|
|
|
- CODA_NAME);
|
|
|
|
|
|
+ if (!dev)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- }
|
|
|
|
|
|
|
|
spin_lock_init(&dev->irqlock);
|
|
spin_lock_init(&dev->irqlock);
|
|
INIT_LIST_HEAD(&dev->instances);
|
|
INIT_LIST_HEAD(&dev->instances);
|