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:
Uwe Kleine-König 2010-11-11 16:47:50 +01:00 committed by Samuel Ortiz
parent 77b22897da
commit e1b88eb0e0
1 changed files with 1 additions and 1 deletions

View File

@ -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;