Patch for Goldstar R420 CDROM driver

Martin Eli Erhardsen (mee@daimi.aau.dk)
Sat, 31 Oct 1998 14:20:15 +0100


The Goldstar R420 CDROM driver doesn't work in 2.1.125,
but this little patch fixes the problem.

--- linux-2.1.125/drivers/cdrom/gscd.c Mon Aug 24 22:02:44 1998
+++ linux/drivers/cdrom/gscd.c Sat Oct 31 14:16:16 1998
@@ -66,6 +66,7 @@
#define gscd_port gscd /* for compatible parameter passing with
"insmod" */
#include "gscd.h"

+static int gscd_blocksizes[1] = {512};

static int gscdPresent = 0;

@@ -1060,6 +1061,7 @@
}

blk_dev[MAJOR_NR].request_fn = DEVICE_REQUEST;
+ blksize_size[MAJOR_NR] = gscd_blocksizes;
read_ahead[MAJOR_NR] = 4;

disk_state = 0;

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