Re: [net-next: PATCH 11/12] net: dsa: mv88e6xxx: switch to device_/fwnode_ APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pon., 20 cze 2022 o 20:04 Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> napisał(a):
>
> On Mon, Jun 20, 2022 at 05:02:24PM +0200, Marcin Wojtas wrote:
> > In order to support both ACPI and DT, modify the generic
> > DSA code to use device_/fwnode_ equivalent routines.
> > No functional change is introduced by this patch.
>
> ...
>
> > @@ -6962,16 +6963,16 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev)
> >       struct dsa_mv88e6xxx_pdata *pdata = mdiodev->dev.platform_data;
> >       const struct mv88e6xxx_info *compat_info = NULL;
> >       struct device *dev = &mdiodev->dev;
> > -     struct device_node *np = dev->of_node;
> > +     struct fwnode_handle *fwnode = dev->fwnode;
>
> Forgot to mention: dev_fwnode() or respective device_property_ API, please.
>

I'll update changes to use the device_property_ API.

Thanks,
Marcin




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux