Przemyslaw Urbanski (Przemyslaw.Urbanski@xxxxxxxxxxxx) wrote: > Chris, > > This is right, but only if i want to do actually something with the > device. pci_get_device it's just probing if device is present on the > system. so pci_enable it would not make sens if device would not exist. > > Anyway this code works (i mean do not cause seg fault), but if i add > I/lib/modules/KERNELVERSIO/build/include/asm/mach-default to CFLAGS, i'm > getting seg fault. You are totally right. I have fired without search ;( Sorry. ~Christophe -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/