477static int __init adc_init(void) 478{ 479 int ret; 480 481 ret = platform_driver_register(&s3c_adc_driver); 482 if (ret) 483 printk(KERN_ERR "%s: failed to add adc driver\n", __func__); 484 485 return ret; 486} 481行,注册了platform_driver s3c_adc_driver,其定义如下: 465static struct platform_driver s3c_adc_driver = { 466 .id_table = s3c_adc_driver_ids, 467 .driver = { 468 .name = "s3c-adc", 469 .owner = THIS_MODULE, 470 }, 471 .probe = s3c_adc_probe, 472 .remove = __devexit_p(s3c_adc_remove), 473 .suspend = s3c_adc_suspend, 474 .resume = s3c_adc_resume, 475};
S3C2410驱动分析之ADC通用驱动
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://127.0.0.1/wyyfgx.html