mirror of https://gitee.com/openkylin/linux.git
mfd: Don't open-code mc13xxx_unlock
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
77b22897da
commit
e1b88eb0e0
|
@ -749,7 +749,7 @@ static int mc13xxx_probe(struct spi_device *spi)
|
||||||
if (ret) {
|
if (ret) {
|
||||||
err_mask:
|
err_mask:
|
||||||
err_revision:
|
err_revision:
|
||||||
mutex_unlock(&mc13xxx->lock);
|
mc13xxx_unlock(mc13xxx);
|
||||||
dev_set_drvdata(&spi->dev, NULL);
|
dev_set_drvdata(&spi->dev, NULL);
|
||||||
kfree(mc13xxx);
|
kfree(mc13xxx);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue