2 * OMAP2plus display device setup / initialization.
4 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
5 * Senthilvadivu Guruswamy
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed "as is" WITHOUT ANY WARRANTY of any
13 * kind, whether express or implied; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
18 #include <linux/kernel.h>
19 #include <linux/init.h>
20 #include <linux/platform_device.h>
22 #include <linux/clk.h>
23 #include <linux/err.h>
25 #include <plat/display.h>
27 static struct platform_device omap_display_device = {
31 .platform_data = NULL,
35 int __init omap_display_init(struct omap_dss_board_info *board_data)
38 omap_display_device.dev.platform_data = board_data;
40 r = platform_device_register(&omap_display_device);
42 printk(KERN_ERR "Unable to register OMAP-Display device\n");