From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Wed, 26 Aug 2009 21:58:00 -0400 Subject: [U-Boot] [RFC PATCH 3/3] phylib: add generic phy driver In-Reply-To: <1251317583-27875-3-git-send-email-plagnioj@jcrosoft.com> References: <4A938C76.9000009@monstr.eu> <1251317583-27875-2-git-send-email-plagnioj@jcrosoft.com> <1251317583-27875-3-git-send-email-plagnioj@jcrosoft.com> Message-ID: <200908262158.01226.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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