lkml.org 
[lkml]   [2017]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/14] soundwire: Add SoundWire bus type
On Thu, Oct 19, 2017 at 08:33:18AM +0530, Vinod Koul wrote:

> + ret = dev_pm_domain_attach(dev, false);
> + if (ret) {
> + dev_err(dev, "Failed to attach PM domain: %d\n", ret);
> + return ret;
> + }
> +
> + ret = drv->probe(slave, id);
> + if (ret) {
> + dev_err(dev, "Probe of %s failed: %d\n", drv->name, ret);
> + return ret;
> + }

We don't detach the power domain if the probe fails.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-10-22 17:49    [W:1.080 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site