upload tizen1.0 source
[kernel/linux-2.6.36.git] / arch / arm / mach-s5pv310 / dev-egic.c
1 /* linux/arch/arm/mach-s5pv310/dev-egic.c
2  *
3  * Copyright (c) 2010 Samsung Electronics Co., Ltd.
4  *              http://www.samsung.com/
5  *
6  * S5PV310 - External GIC support
7  *
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.
11  */
12
13 #include <linux/io.h>
14 #include <linux/kernel.h>
15 #include <linux/platform_device.h>
16 #include <linux/delay.h>
17
18 struct platform_device s5pv310_device_egic = {
19         .name   = "s5pv310-external-GIC",
20         .id     = -1,
21 };
22
23 static int __init s5pv310_egic_device_init(void)
24 {
25         int ret;
26
27         ret = platform_device_register(&s5pv310_device_egic);
28
29         if (ret) {
30                 printk(KERN_ERR "failed at(%d)\n", __LINE__);
31                 return ret;
32         }
33
34         return ret;
35 }
36
37 arch_initcall(s5pv310_egic_device_init);