#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>
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)
probe_failed:
devres_release_all(dev);
driver_sysfs_remove(dev);
- genpd_unbind_domain(dev);
dev->driver = NULL;
dev_set_drvdata(dev, NULL);
blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
BUS_NOTIFY_UNBOUND_DRIVER,
dev);
- genpd_unbind_domain(dev);
+
}
}