From: Jan-Benedict G. <jb...@us...> - 2005-10-21 07:22:46
|
Update of /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20814/arch/vax/kernel Modified Files: cpu_ka660.c Log Message: - CQBIC support for ka660. - By James W. Laferriere Index: cpu_ka660.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/arch/vax/kernel/cpu_ka660.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- cpu_ka660.c 2 Oct 2004 11:42:47 -0000 1.11 +++ cpu_ka660.c 21 Oct 2005 07:22:38 -0000 1.12 @@ -12,6 +12,9 @@ #include <linux/types.h> /* For NULL */ #include <linux/kernel.h> /* For printk */ +#include <linux/init.h> +#include <linux/device.h> + #include <asm/mtpr.h> #include <asm/mv.h> #include <asm/vaxcpu.h> @@ -43,3 +46,24 @@ (SOC_Q22_SUBTYPE_KA660 << SOC_Q22_SUBTYPE_SHIFT), }; +static struct platform_device ka660_cqbic_device = { + .name = "cqbic" +}; + +static struct platform_device ka660_iprcons_device = { + .name = "iprcons" +}; + +static int __init ka660_platform_device_init(void) +{ + if (!is_ka660()) + return -ENODEV; + + platform_device_register(&ka660_cqbic_device); +/* platform_device_register(&ka660_iprcons_device); */ + + return 0; +} + +arch_initcall(ka660_platform_device_init); + |