]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MLK-10238-2: Revert "drivercore: Bind/unbind power domain on probe/remove"
authorRobin Gong <b38343@freescale.com>
Mon, 9 Feb 2015 08:54:52 +0000 (16:54 +0800)
committerRobin Gong <b38343@freescale.com>
Wed, 11 Feb 2015 05:07:32 +0000 (13:07 +0800)
This reverts commit ef2c90dea437f8955b7dc089ff1579c2aa06a6b7.
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit e2c50506fee918f95425babbccc7ecf28d3d2f87)

drivers/base/dd.c

index 4e812a0c445d6f13f2c16c8447496bd6a2609dac..8a8d611f202128e02aadb921870efdc6701873b9 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/kthread.h>
 #include <linux/wait.h>
 #include <linux/async.h>
-#include <linux/pm_domain.h>
 #include <linux/pm_runtime.h>
 #include <linux/pinctrl/devinfo.h>
 
@@ -288,11 +287,6 @@ static int really_probe(struct device *dev, struct device_driver *drv)
 
        dev->driver = drv;
 
-       /* If using genpd, bind power domain now before probing */
-       ret = genpd_bind_domain(dev);
-       if (ret)
-               goto probe_failed;
-
        /* If using pinctrl, bind pins now before probing */
        ret = pinctrl_bind_pins(dev);
        if (ret)
@@ -323,7 +317,6 @@ static int really_probe(struct device *dev, struct device_driver *drv)
 probe_failed:
        devres_release_all(dev);
        driver_sysfs_remove(dev);
-       genpd_unbind_domain(dev);
        dev->driver = NULL;
        dev_set_drvdata(dev, NULL);
 
@@ -537,7 +530,7 @@ static void __device_release_driver(struct device *dev)
                        blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
                                                     BUS_NOTIFY_UNBOUND_DRIVER,
                                                     dev);
-               genpd_unbind_domain(dev);
+
        }
 }