Re: device_probe_and_attach() fails in kernel built w/ clang

2011-08-18 Thread John Baldwin
On Thursday, August 18, 2011 2:03:14 am Jason Harmening wrote: > Hi everyone, > > I have a driver for PCI devices that have onboard I2C buses, so my > driver needs to create an iicbus child for the PCI device. So in my > driver I use DRIVER_MODULE(iicbus, , iicbus_driver, > iicbus_devclass, NULL,

Re: device_probe_and_attach() fails in kernel built w/ clang

2011-08-18 Thread Hans Petter Selasky
On Thursday 18 August 2011 08:03:14 Jason Harmening wrote: > Any help would be really appreciated. I'm guessing that some static data sections needs a __used flag, and have been removed by the compiler. Could you do an object dump? objdump -D -x xxx.ko ? --HPS ___

device_probe_and_attach() fails in kernel built w/ clang

2011-08-18 Thread Jason Harmening
Hi everyone, I have a driver for PCI devices that have onboard I2C buses, so my driver needs to create an iicbus child for the PCI device. So in my driver I use DRIVER_MODULE(iicbus, , iicbus_driver, iicbus_devclass, NULL, NULL). This works because iicbus_driver and iicbus_devclass are declared