Re: [PATCH] phy: ti: Fix compilation failures without REGMAP

From: Andrew Lunn
Date: Mon Jan 07 2019 - 13:13:06 EST


On Mon, Jan 07, 2019 at 05:48:00PM +0000, Jason Gunthorpe wrote:
> This driver requires regmap or the compile fails:
>
> drivers/phy/ti/phy-gmii-sel.c:43:27: error: array type has incomplete element type âstruct reg_fieldâ
> const struct reg_field (*regfields)[PHY_GMII_SEL_LAST];
>
> Add it to kconfig.

Hi Jason

It looks like more of the TI drivers need REGMAP, but don't select it.
I assume you are using COMPILE_TEST, since TI_CPSW selects REGMAP?

Andrew