[U-Boot] [PATCH 2/2] RFC: Let linker create phy array

Mike Frysinger vapier at gentoo.org
Mon Feb 6 20:07:39 CET 2012


On Monday 06 February 2012 13:48:13 Troy Kisky wrote:
> On 2/4/2012 8:38 PM, Mike Frysinger wrote:
> > On Saturday 04 February 2012 22:02:46 Troy Kisky wrote:
> >> --- a/drivers/net/phy/broadcom.c
> >> +++ b/drivers/net/phy/broadcom.c
> >> 
> >> -static struct phy_driver BCM5461S_driver = {
> >> +struct phy_driver BCM5461S_driver __phy_entry = {
> > 
> > why do you have to remove the static ?  that shouldn't affect the section
> > name that it gets placed into.
> 
> I had static to start. But the compiler ate all of the code. No
> references to any of the static symbols.

sounds like you should change the __phy_entry define from "unused" to "used"
-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/20120206/abbcedb8/attachment.pgp>


More information about the U-Boot mailing list