mfd: Don't open-code mc13xxx_unlock
authorUwe Kleine-König <[email protected]>
Thu, 11 Nov 2010 15:47:50 +0000 (16:47 +0100)
committerSamuel Ortiz <[email protected]>
Fri, 14 Jan 2011 11:37:37 +0000 (12:37 +0100)
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
drivers/mfd/mc13xxx-core.c

index a2ac2ed6d64c64467e12ad6822f543cfe609a853..b9fcaf0004da79142414ef54d53f866122df1a1e 100644 (file)
@@ -749,7 +749,7 @@ static int mc13xxx_probe(struct spi_device *spi)
        if (ret) {
 err_mask:
 err_revision:
-               mutex_unlock(&mc13xxx->lock);
+               mc13xxx_unlock(mc13xxx);
                dev_set_drvdata(&spi->dev, NULL);
                kfree(mc13xxx);
                return ret;