mirror of https://gitee.com/openkylin/linux.git
i2c: s3c2410: Remove err_cpufreq label
err_cpufreq label is now used only once. It can be removed and related code can be moved to the caller location. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
This commit is contained in:
parent
d16933b339
commit
dc6fea4456
|
@ -1109,7 +1109,8 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
|
||||||
ret = i2c_add_numbered_adapter(&i2c->adap);
|
ret = i2c_add_numbered_adapter(&i2c->adap);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
dev_err(&pdev->dev, "failed to add bus to i2c core\n");
|
dev_err(&pdev->dev, "failed to add bus to i2c core\n");
|
||||||
goto err_cpufreq;
|
s3c24xx_i2c_deregister_cpufreq(i2c);
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
of_i2c_register_devices(&i2c->adap);
|
of_i2c_register_devices(&i2c->adap);
|
||||||
|
@ -1120,10 +1121,6 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
dev_info(&pdev->dev, "%s: S3C I2C adapter\n", dev_name(&i2c->adap.dev));
|
dev_info(&pdev->dev, "%s: S3C I2C adapter\n", dev_name(&i2c->adap.dev));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_cpufreq:
|
|
||||||
s3c24xx_i2c_deregister_cpufreq(i2c);
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* s3c24xx_i2c_remove
|
/* s3c24xx_i2c_remove
|
||||||
|
|
Loading…
Reference in New Issue