static int __init pl111_platform_drm_init(void) { int ret; pr_info("DRM %s\n", __func__); pl111_drm_device = platform_device_register_full(&pl111_drm_pdevinfo); if (pl111_drm_device == NULL) { pr_err("DRM platform_device_register_full() failed\n"); return -ENOMEM; } ret = amba_driver_register(&pl111_amba_driver); if (ret != 0) { pr_err("DRM amba_driver_register() failed %d\n", ret); goto err_amba_reg; } ret = platform_driver_register(&platform_drm_driver); if (ret != 0) { pr_err("DRM platform_driver_register() failed %d\n", ret); goto err_pdrv_reg; } return 0; err_pdrv_reg: amba_driver_unregister(&pl111_amba_driver); err_amba_reg: platform_device_unregister(pl111_drm_device); return ret; }
static int __init pl011_init(void) { int ret; printk(KERN_INFO "Serial: AMBA PL011 UART driver\n"); ret = uart_register_driver(&amba_reg); if (ret == 0) { ret = amba_driver_register(&pl011_driver); if (ret) uart_unregister_driver(&amba_reg); } return ret; }
static int __init etm_init(void) { int retval; retval = amba_driver_register(&etb_driver); if (retval) { printk(KERN_ERR "Failed to register etb\n"); return retval; } retval = amba_driver_register(&etm_driver); if (retval) { amba_driver_unregister(&etb_driver); printk(KERN_ERR "Failed to probe etm\n"); return retval; } /* not being able to install this handler is not fatal */ (void)register_sysrq_key('v', &sysrq_etm_op); return 0; }
static int __init pl010_init(void) { int ret; printk(KERN_INFO "Serial: AMBA driver $Revision: 1.41 $\n"); ret = uart_register_driver(&amba_reg); if (ret == 0) { ret = amba_driver_register(&pl010_driver); if (ret) uart_unregister_driver(&amba_reg); } return ret; }
static int __init mmci_init(void) { return amba_driver_register(&mmci_driver); }
static int __init pl031_init(void) { return amba_driver_register(&pl031_driver); }
static int __init pl061_gpio_init(void) { return amba_driver_register(&pl061_gpio_driver); }
static int __init amba_kmi_init(void) { return amba_driver_register(&ambakmi_driver); }
static int sp804_init(void) { return amba_driver_register(&sp804_driver); }
static int __init sp805_wdt_init(void) { return amba_driver_register(&sp805_wdt_driver); }
static int __init nmk_rng_init(void) { return amba_driver_register(&nmk_rng_driver); }
static int __init integrator_rtc_init(void) { return amba_driver_register(&rtc_driver); }