summaryrefslogtreecommitdiffstats
path: root/drivers/ide/cy82c693.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2015-01-27 21:13:45 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-02-03 22:56:54 +0100
commitb472c2faf471b72e7f3ffe35200dfb3d227487b7 (patch)
tree5dd778d65af07b3f4ae74d931e3bd4ac7a03ad5d /drivers/ide/cy82c693.c
parentf104e1e5ef5788f02de2053bfbd0f02d629b6036 (diff)
downloadtalos-obmc-linux-b472c2faf471b72e7f3ffe35200dfb3d227487b7.tar.gz
talos-obmc-linux-b472c2faf471b72e7f3ffe35200dfb3d227487b7.zip
PM / Domains: Handle errors from genpd's ->attach_dev() callback
The optional genpd's ->attach_dev() callback is invoked from __pm_genpd_add_device(). Let's add error handling from the response from this callback and propagate the error code. When __pm_genpd_add_device() is invoked through the generic OF-based PM domain look-up path, the device is being probed. Returning an error will mean the device won't be attached to its PM domain. Errors of -EPROBE_DEFER get special treatment and is propagated to the driver core. Therefore this change also enables the ->attach_dev() callback to be able to request for a deferred probe sequence. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/ide/cy82c693.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud