Re: [PATCH] net: of/phy: fix build error when phylib is built as amodule

From: David Miller
Date: Fri May 11 2012 - 18:08:43 EST


From: David Daney <ddaney.cavm@xxxxxxxxx>
Date: Fri, 11 May 2012 10:58:06 -0700

> On 05/11/2012 08:47 AM, Bjørn Mork wrote:
>> CONFIG_OF_MDIO is tristate and will be m if PHYLIB is m. Use
>> IS_ENABLED macro to prevent build error:
>>
>> ERROR: "of_mdio_find_bus" [drivers/net/phy/mdio-mux.ko] undefined!
>>
>> Reported-by: Randy Dunlap<rdunlap@xxxxxxxxxxxx>
>> Cc: David Daney<david.daney@xxxxxxxxxx>
>> Signed-off-by: Bjørn Mork<bjorn@xxxxxxx>
>
> I was able to reproduce the failure, and this patch both fixes it and
> seems correct, so...
>
> Acked-by: David Daney<david.daney@xxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/