On Saturday 09 February 2008, Borislav Petkov wrote: > commit a6aaf3dd3e88d1bd1e85fb4329042ecb9247e0eb > Author: Borislav Petkov <petkovbb@xxxxxxxxx> > Date: Fri Feb 8 18:21:47 2008 +0100 > > ide-floppy: remove struct idefloppy_id_gcw > > Signed-off-by: Borislav Petkov <petkovbb@xxxxxxxxx> applied with some changes > diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c > index faf22d7..5d5bde8 100644 > --- a/drivers/ide/ide-floppy.c > +++ b/drivers/ide/ide-floppy.c [...] > #ifdef CONFIG_PPC > /* kludge for Apple PowerBook internal zip */ > - if ((gcw.device_type == 5) && > - !strstr(id->model, "CD-ROM") && > - strstr(id->model, "ZIP")) > - gcw.device_type = 0; > + if ((device_type == 5) && > + trstr(id->model, "CD-ROM") && ^^^^^ [...] > - else if (!gcw.removable) > - printk(KERN_ERR "ide-floppy: The removable flag is not set\n"); > - else if (gcw.drq_type == 3) { > + "to floppy\n", device_type); > + else if (!removable) > + printk(KERN_ERR "ide-floppy: The removable flag (0x%02x) is not" no need to dump it (it is a single bit flag) [ please document such changes in patch description ] > + else if (drq_type == 3) { > printk(KERN_ERR "ide-floppy: Sorry, DRQ type (0x%02x) not " > - "supported\n", gcw.drq_type); > - } else if (gcw.packet_size != 0) { > + "supported\n", drq_type); > + } else if (packet_size != 0) { > printk(KERN_ERR "ide-floppy: Packet size (0x%02x) is not 12 " > - "bytes long\n", gcw.packet_size); > + "bytes\n", packet_size); > } else needless braces can be removed while at it - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html