[U-Boot] [RFC PATCH 3/3] phylib: add generic phy driver

Mike Frysinger
2009-08-27T01:58:00Z

On Wednesday 26 August 2009 16:13:03 Jean-Christophe PLAGNIOL-VILLARD wrote:
> +void generic_phy_register(void)
> +{
> + struct phy_driver generic_phy = {
> + .name = "Generic PHY",
> + .phy_id = 0xffffffff,
> + .phy_id_mask = 0xffffffff,
> + .features = 0,
> + .config_init = generic_phy_init,
> + };
> +
> + phy_driver_register(&generic_phy);

you cant register a driver you declared on the stack
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090826/0e9f31ab/attachment.pgp