Re: [PATCH 1/5] hwmon: (core) Inherit power properties to hdev
From: Nicolin Chen
Date: Wed Oct 17 2018 - 16:15:10 EST
On Wed, Oct 17, 2018 at 12:44:30PM -0700, Guenter Roeck wrote:
> > + hdev->driver = dev->driver;
> > + hdev->power = dev->power;
> > + hdev->pm_domain = dev->pm_domain;
>
> dev can, unfortunately, be NULL
>
> > hdev->of_node = dev ? dev->of_node : NULL;
>
> ... as you can see here.
Oops..will fix it.
Thanks!
>
> Guenter
>
> > hwdev->chip = chip;
> > dev_set_drvdata(hdev, drvdata);
> > --
> > 2.17.1
> >