ARM: OMAP: Add support for USB on OMAP34XX
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines
Quoted 1 line
Can you clarify this a little? Do you mean declare it in the .h as:
extern void
sdp3430_usb_init(void);Yes. Removing
__initand friends from header files is actually one of Kernel Janitors TODO. We don't need to redefine__initand friends on function prototypes. GCC will always use the last one. Redefining in header
files can lead to errors like declaring the function as__initin the c
file and__initdatain the header file and we can't be sure about which one
GCC will use (not that true).
Quoted 3 lines
The best here and for any other function, is leaving section defines to C
files and avoid indirect including oflinux/init.h
Ok. I didn't know this. Thanks for the info. One more piece of learning for the day!
Regards,
Anand