spi.c
postcore_initcall(spi_init);
static int __init spi_init(void)
bus_register(&spi_bus_type);
class_register(&spi_master_class);
spidev.c
module_init(spidev_init);
static int __init spidev_init(void)
register_chrdev(SPIDEV_MAJOR, "spi", &spidev_fops);
class_create(THIS_MODULE, "spidev");
spi_register_driver(&spidev_spi_driver);
static int spidev_probe(struct spi_device *spi)