2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved.
8 #include <linux/init.h>
9 #include <linux/platform_device.h>
11 static struct resource __initdata sead3_lcd_resource = {
14 .flags = IORESOURCE_MEM,
17 static __init int sead3_lcd_add(void)
19 struct platform_device *pdev;
22 /* SEAD-3 and Cobalt platforms use same display type. */
23 pdev = platform_device_alloc("cobalt-lcd", -1);
27 retval = platform_device_add_resources(pdev, &sead3_lcd_resource, 1);
31 retval = platform_device_add(pdev);
38 platform_device_put(pdev);
43 device_initcall(sead3_lcd_add);