]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/scsi/sr.c
[SCSI] sd, sr: do not emit change event at device add
[linux-2.6-omap-h63xx.git] / drivers / scsi / sr.c
index 208565bdbe8e946c5f7c0676d72c2b04174d59fa..7ee86d4a761810f6c66ffbd5ce4af203a824edeb 100644 (file)
@@ -623,6 +623,7 @@ static int sr_probe(struct device *dev)
        cd->disk = disk;
        cd->capacity = 0x1fffff;
        cd->device->changed = 1;        /* force recheck CD type */
+       cd->previous_state = 1;
        cd->use = 1;
        cd->readcd_known = 0;
        cd->readcd_cdda = 0;