Patchwork jsflash: stop defining MAJOR_NR

login
register
mail settings
Submitter Christoph Hellwig
Date Feb. 28, 2009, 9:22 p.m.
Message ID <20090228212235.GA24377@lst.de>
Download mbox | patch
Permalink /patch/23898/
State Accepted
Delegated to: David Miller
Headers show

Comments

Christoph Hellwig - Feb. 28, 2009, 9:22 p.m.
Ever since early 2.5 kernels block drivers don't need to define MAJOR_NR
anymore, so use the JSFD_MAJOR defined directly and kill it.


Signed-off-by: Christoph Hellwig <hch@lst.de>

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - March 4, 2009, 8:18 a.m.
From: Christoph Hellwig <hch@lst.de>
Date: Sat, 28 Feb 2009 22:22:35 +0100

> Ever since early 2.5 kernels block drivers don't need to define MAJOR_NR
> anymore, so use the JSFD_MAJOR defined directly and kill it.
> 
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>

Applied, thanks Christoph.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

Index: linux-2.6/drivers/sbus/char/jsflash.c
===================================================================
--- linux-2.6.orig/drivers/sbus/char/jsflash.c	2009-02-27 17:41:59.547168644 +0100
+++ linux-2.6/drivers/sbus/char/jsflash.c	2009-02-27 17:42:05.545295810 +0100
@@ -38,9 +38,6 @@ 
 #include <linux/string.h>
 #include <linux/genhd.h>
 #include <linux/blkdev.h>
-
-#define MAJOR_NR	JSFD_MAJOR
-
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/io.h>