]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mfd: bcm590xx: Add missing remove function
authorAxel Lin <axel.lin@ingics.com>
Mon, 31 Mar 2014 13:32:37 +0000 (21:32 +0800)
committerLee Jones <lee.jones@linaro.org>
Fri, 23 May 2014 09:33:51 +0000 (10:33 +0100)
Add missing mfd_remove_devices() call in remove function.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/bcm590xx.c

index 43cba1a1973cc332742d0c1d571e56cb92356edf..417792ad871c279e7ea24d453fc3709fe35e8649 100644 (file)
@@ -96,6 +96,12 @@ err:
        return ret;
 }
 
+static int bcm590xx_i2c_remove(struct i2c_client *i2c)
+{
+       mfd_remove_devices(&i2c->dev);
+       return 0;
+}
+
 static const struct of_device_id bcm590xx_of_match[] = {
        { .compatible = "brcm,bcm59056" },
        { }
@@ -115,6 +121,7 @@ static struct i2c_driver bcm590xx_i2c_driver = {
                   .of_match_table = of_match_ptr(bcm590xx_of_match),
        },
        .probe = bcm590xx_i2c_probe,
+       .remove = bcm590xx_i2c_remove,
        .id_table = bcm590xx_i2c_id,
 };
 module_i2c_driver(bcm590xx_i2c_driver);