From: Albert H. <he...@us...> - 2008-04-04 19:42:45
|
Update of /cvsroot/gc-linux/linux/arch/powerpc/platforms/embedded6xx In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv1447/arch/powerpc/platforms/embedded6xx Modified Files: gamecube_dev.c gcn-rsw.c Log Message: Whitespace/comments/documentation cleanup. Index: gcn-rsw.c =================================================================== RCS file: /cvsroot/gc-linux/linux/arch/powerpc/platforms/embedded6xx/gcn-rsw.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- gcn-rsw.c 27 Mar 2008 22:35:24 -0000 1.3 +++ gcn-rsw.c 4 Apr 2008 19:42:49 -0000 1.4 @@ -22,11 +22,7 @@ #include <linux/spinlock.h> #include <linux/delay.h> #include <linux/reboot.h> - -#ifdef CONFIG_KEXEC #include <linux/kexec.h> -#endif - /* for flipper hardware registers */ #include "flipper-pic.h" @@ -175,8 +171,10 @@ } /* - * Initializes the driver. + * Setup routines. + * */ + static int rsw_init(struct rsw_drvdata *drvdata, struct resource *mem, int irq) { int retval; @@ -197,9 +195,6 @@ return retval; } -/* - * Deinitializes the driver. - */ static void rsw_exit(struct rsw_drvdata *drvdata) { free_irq(drvdata->irq, drvdata); @@ -210,8 +205,10 @@ } /* - * Common probe function for a reset button device. + * Driver model helper routines. + * */ + static int rsw_do_probe(struct device *dev, struct resource *mem, int irq) { struct rsw_drvdata *drvdata; @@ -233,9 +230,6 @@ return retval; } -/* - * Common remove function for a reset button device. - */ static int rsw_do_remove(struct device *dev) { struct rsw_drvdata *drvdata = dev_get_drvdata(dev); @@ -254,9 +248,6 @@ * */ -/* - * Driver model probe function. - */ static int __init rsw_of_probe(struct of_device *odev, const struct of_device_id *match) { @@ -273,9 +264,6 @@ &mem, irq_of_parse_and_map(odev->node, 0)); } -/* - * Driver model remove function. - */ static int __exit rsw_of_remove(struct of_device *odev) { return rsw_do_remove(&odev->dev); @@ -298,9 +286,11 @@ }; /* - * Module initialization function. + * Kernel module hooks. + * */ -static int rsw_init_module(void) + +static int __init rsw_init_module(void) { drv_printk(KERN_INFO, "%s - version %s\n", DRV_DESCRIPTION, rsw_driver_version); @@ -308,10 +298,7 @@ return of_register_platform_driver(&rsw_of_driver); } -/* - * Module deinitialization function. - */ -static void rsw_exit_module(void) +static void __exit rsw_exit_module(void) { of_unregister_platform_driver(&rsw_of_driver); } Index: gamecube_dev.c =================================================================== RCS file: /cvsroot/gc-linux/linux/arch/powerpc/platforms/embedded6xx/gamecube_dev.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- gamecube_dev.c 26 Mar 2008 19:48:46 -0000 1.1 +++ gamecube_dev.c 4 Apr 2008 19:42:49 -0000 1.2 @@ -23,9 +23,6 @@ { }, }; -/* - * - */ static int __init gamecube_device_probe(void) { if (!machine_is(gamecube)) |