lkml.org 
[lkml]   [1997]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectpatch against driver/cdrom/mcdx.c
this patch makes mcdx.c conform to normal behavior and fixes a bug that
causes MAKEDEV-C to break.
(without this patch mcdx registers as "Mitsumi CD-ROM" in /proc/devices.
with this path it registers as "mcdx", like it should (every other
device driver does it this way).

i mailed this patch to the author of mcdx.
it would be great, if this patch makes its way into the next kernels..

regards, andreas

patch (drivers/cdrom/mcdx.c)
1149c1149
< if (unregister_blkdev(MAJOR_NR, "mcdx") != 0) {
---
> if (unregister_blkdev(MAJOR_NR, DEVICE_NAME) != 0) {
1270c1270
< if (register_blkdev(MAJOR_NR, "mcdx", &mcdx_fops) != 0) {
---
> if (register_blkdev(MAJOR_NR, DEVICE_NAME, &mcdx_fops) != 0) {

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.864 / U:2.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site