[PATCH] drivers/char/stallion.c: devfs_mk_cdev fix

From: Felipe W Damasio (felipewd@terra.com.br)
Date: Wed Jul 30 2003 - 09:42:43 EST


        Hi,

        devfs_mk_cdev now only takes 3 parameters (dev_t, umode_t, fmt..), so
update this driver to the new API.

        Please apply,

Felipe


--- linux-2.6.0-test2/drivers/char/stallion.c.orig Wed Jul 30 11:38:08 2003
+++ linux-2.6.0-test2/drivers/char/stallion.c Wed Jul 30 11:37:51 2003
@@ -3173,7 +3171,7 @@
         for (i = 0; i < 4; i++) {
                 devfs_mk_cdev(MKDEV(STL_SIOMEMMAJOR, i),
                                 S_IFCHR|S_IRUSR|S_IWUSR,
- &stl_fsiomem, NULL, "staliomem/%d", i);
+ "staliomem/%d", i);
         }
 
         stl_serial->owner = THIS_MODULE;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:45 EST