Re: [PATCH 5/7] ahci: Convert driver to use modern PM hooks
From: Christoph Hellwig
Date: Thu Feb 18 2016 - 09:41:32 EST
On Thu, Feb 18, 2016 at 08:12:46AM -0500, Tejun Heo wrote:
> On Thu, Feb 18, 2016 at 12:45:05PM +0200, Andy Shevchenko wrote:
> > > + .driver.pm = &ahci_pci_pm_ops,
> >
> > Please, do this in several assignments, since to support older compilers.
>
> Can you please elaborate? That's a single assignment. Are there
> compilers which can't do that?
Old gcc (I think 4.4 is the last one) needs:
.driver = {
.pm = &ahci_pci_pm_ops,
},