总线设备驱动:
# insmod bus.ko
# insmod driver.ko
# insmod device.ko
driver found the device it can handle!
my_dev: probe of my_dev failed with error 45
上面错误是以为driver.c中的下面子函数没有加return 0;
int my_probe(struct device *dev)
{printk(KERN_WARNING"driver found the device it can handle!\n");
return 0;
}