On Tue, Feb 13, 2018 at 07:51:21PM +0200, Andy Shevchenko wrote:
> On Tue, Feb 13, 2018 at 7:00 PM, Mika Westerberg
> <mika.westerb...@linux.intel.com> wrote:
> > From: Radion Mirchevsky <radion.mirchev...@intel.com>
> >
> > This is needed by the new ICM interface to find xdomains by route string
> > instead of link and depth.
> 
> > +       xd = switch_find_xdomain(tb->root_switch, &lookup);
> 
> > +       if (xd) {
> > +               get_device(&xd->dev);
> > +               return xd;
> > +       }
> > +
> > +       return NULL;
> 
> return tb_xdomain_get(xd);

Indeed, that can be used here as well. I'll change it in v2.

Reply via email to