Skip to contentSkip to conversation

jsflash: stop defining MAJOR_NR

PATCH New Christoph Hellwig 1 participant 1 message Feb 28, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jsflash: stop defining MAJOR_NR

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.

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>