[U-Boot] [PATCH 2/8] pxa_lcd: make lcd_enable() a weak pointer

Mike Dunn mikedunn at newsguy.com
Mon Apr 8 19:49:02 CEST 2013


On 04/07/2013 12:08 PM, Fabio Estevam wrote:
> On Sun, Apr 7, 2013 at 1:40 PM, Mike Dunn <mikedunn at newsguy.com> wrote:
> 
>> +void lcd_enable(void)
>> +       __attribute__((weak, alias("__lcd_enable")));
> 
> What about declaring it as:
> 
> __weak void lcd_enable(void)
> 
> 



Yes, that works.  And very to-the-point :)  Thanks.

Mike


More information about the U-Boot mailing list