]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/m68k/sun3x/config.c
proc: move /proc/hardware to m68k-specific code
[linux-2.6-omap-h63xx.git] / arch / m68k / sun3x / config.c
index 987891783a472f64662ba93b2093639aebcd0960..2b1ca2db070fc429e25cfb9ae9140c5b26f8cbe9 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/types.h>
 #include <linux/mm.h>
+#include <linux/seq_file.h>
 #include <linux/console.h>
 #include <linux/init.h>
 
@@ -31,16 +32,9 @@ void sun3_leds(unsigned int i)
 
 }
 
-static int sun3x_get_hardware_list(char *buffer)
+static void sun3x_get_hardware_list(struct seq_file *m)
 {
-
-       int len = 0;
-
-       len += sprintf(buffer + len, "PROM Revision:\t%s\n",
-                      romvec->pv_monid);
-
-       return len;
-
+       seq_printf(m, "PROM Revision:\t%s\n", romvec->pv_monid);
 }
 
 /*