On Mon, 2010-01-11 at 21:38 -0800, rohan tabish wrote: > #define SPI_REG(reg) (*(int *_IOMEM) IO_ADDRESS(reg)) > > > Hello everyone I am using DM6446 and i have problem using the MACRO > defined above i have included the following harware.h file for using > this MACRO > > arch/arm/mach-davinci/include/mach/hardware.h > > The module gets compiled correctly but when i load the module it gives > the following error. > insmod my_led.ko > > my_led: disagrees about version of symbol module_layout > > > insmod: can't insert 'my_led.ko': invalid module format > > Anyone knows how to solve this issue. > >
In general, one should use existing macros for register access rather than defining their own. The __raw_readb/w/l macro should be used instead. Regards, Steve _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
