/* This is gets invoked once during initialization, to set  */
static int __init ide_init(void)
/* This is gets invoked once during initialization, to set  */
static int __init ide_init(void)
{
	int ret;
	printk(KERN_INFO "Uniform Multi-Platform E-IDE driver\n");
	ret = bus_register(&ide_bus_type);
	if (ret < 0) {
		printk(KERN_WARNING "IDE: bus_register error: %d\n", ret);
		return ret;
	}
	ide_port_class = class_create(THIS_MODULE, "ide_port");
	if (IS_ERR(ide_port_class)) {
		ret = PTR_ERR(ide_port_class);
		goto out_port_class;
	}
	ide_acpi_init();
	proc_ide_create();
	return 0;
out_port_class:
	bus_unregister(&ide_bus_type);
	return ret;
}