static struct platform_driver xxx_driver = {
.probe = xxx_probe,
.remove = xxx_remove,
.suspend = xxx_suspend,
.resume = xxx_resume,
.driver = {
.name = "xxx",
.owner = THIS_MODULE,
},
};
static int __init xxx_init(void) {
if (platform_driver_register(&xxx_driver)) {
printk("failed to register xxx dirver\n");
return -ENODEV;
}
}