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;
}
Exemple #2
0
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;
}
Exemple #3
0
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;
}
Exemple #4
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;
}
Exemple #5
0
static int __init mmci_init(void)
{
    return amba_driver_register(&mmci_driver);
}
Exemple #6
0
static int __init pl031_init(void)
{
	return amba_driver_register(&pl031_driver);
}
Exemple #7
0
static int __init pl061_gpio_init(void)
{
	return amba_driver_register(&pl061_gpio_driver);
}
Exemple #8
0
static int __init amba_kmi_init(void)
{
	return amba_driver_register(&ambakmi_driver);
}
Exemple #9
0
static int sp804_init(void)
{
	return amba_driver_register(&sp804_driver);
}
Exemple #10
0
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);
}
Exemple #12
0
static int __init integrator_rtc_init(void)
{
	return amba_driver_register(&rtc_driver);
}