Skip to contentSkip to conversation

x86: i8257.c cleanup

PATCH In review Jaswinder Singh Rajput 1 participant 2 messages Mar 14, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: i8257.c cleanup

Subject: [PATCH] x86: i8257.c cleanup

Impact: cleanup

---
 arch/x86/kernel/i8237.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
arch/x86/kernel/i8237.c +3 -2
index b42ca69..044ca09 100644
@@ -9,9 +9,8 @@
  * your option) any later version.
  */
 
-#include <linux/init.h>
 #include <linux/sysdev.h>
-
+#include <linux/init.h>
 #include <asm/dma.h>
 
 /*
@@ -64,8 +63,10 @@ static struct sys_device device_i8237A = {
 static int __init i8237A_init_sysfs(void)
 {
 	int error = sysdev_class_register(&i8237_sysdev_class);
+
 	if (!error)
 		error = sysdev_register(&device_i8237A);
+
 	return error;
 }
 device_initcall(i8237A_init_sysfs);
Signature · 1 line
1.6.0.6
#1 lore raw
Quoted 2 lines · Jaswinder Singh Rajput

Subject: [PATCH] x86: i8257.c cleanup

Oops, typo

It is [PATCH] x86: i8237.c cleanup

Quoted 33 lines

Impact: cleanup

---
 arch/x86/kernel/i8237.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
arch/x86/kernel/i8237.c +3 -2
index b42ca69..044ca09 100644
@@ -9,9 +9,8 @@
  * your option) any later version.
  */
 
-#include <linux/init.h>
 #include <linux/sysdev.h>
-
+#include <linux/init.h>
 #include <asm/dma.h>
 
 /*
@@ -64,8 +63,10 @@ static struct sys_device device_i8237A = {
 static int __init i8237A_init_sysfs(void)
 {
 	int error = sysdev_class_register(&i8237_sysdev_class);
+
 	if (!error)
 		error = sysdev_register(&device_i8237A);
+
 	return error;
 }
 device_initcall(i8237A_init_sysfs);