Merge branch 'for-2.6.37' into for-2.6.38
This commit is contained in:
@@ -240,6 +240,7 @@ static int __init at91sam9g20ek_init(void)
|
||||
if (!at91sam9g20ek_snd_device) {
|
||||
printk(KERN_ERR "ASoC: Platform device allocation failed\n");
|
||||
ret = -ENOMEM;
|
||||
goto err_mclk;
|
||||
}
|
||||
|
||||
platform_set_drvdata(at91sam9g20ek_snd_device,
|
||||
@@ -248,11 +249,13 @@ static int __init at91sam9g20ek_init(void)
|
||||
ret = platform_device_add(at91sam9g20ek_snd_device);
|
||||
if (ret) {
|
||||
printk(KERN_ERR "ASoC: Platform device allocation failed\n");
|
||||
platform_device_put(at91sam9g20ek_snd_device);
|
||||
goto err_device_add;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
err_device_add:
|
||||
platform_device_put(at91sam9g20ek_snd_device);
|
||||
err_mclk:
|
||||
clk_put(mclk);
|
||||
mclk = NULL;
|
||||
|
@@ -167,7 +167,6 @@ static int __init afeb9260_soc_init(void)
|
||||
|
||||
return 0;
|
||||
err1:
|
||||
platform_device_del(afeb9260_snd_device);
|
||||
platform_device_put(afeb9260_snd_device);
|
||||
return err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user