摘要:
调用platform_device_register和platform_driver_register分别注册platform_device和platform_driver,两者的名字一样(xxx_device),名字不一样调用device_attach会匹配不上,也就不会执行probe函数,在/sys目录下的文件顺序如下: /sys/devices/platform/xxx_device/ uevent subsystem power drivermodalias(bus->dev_attrs) XXX(class->dev_attrs) XXX(device_type-> 阅读全文