From: Scott James Remnant Date: Tue, 10 Mar 2009 16:19:44 +0000 (+0000) Subject: [SCSI] ch: Add scsi type modalias X-Git-Tag: upstream/snapshot3+hdmi~19904^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95f6c83f6c57be92c67247802d0f699137957457;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [SCSI] ch: Add scsi type modalias The ch module is missing the scsi:t-0x08* alias that would cause it to be auto-loaded when a device of that type if found by udev, requiring udev to have a specific rule just for this one module. This patch adds the alias. Signed-off-by: Scott James Remnant Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ch.c b/drivers/scsi/ch.c index af97254..7b1633a 100644 --- a/drivers/scsi/ch.c +++ b/drivers/scsi/ch.c @@ -41,6 +41,7 @@ MODULE_DESCRIPTION("device driver for scsi media changer devices"); MODULE_AUTHOR("Gerd Knorr "); MODULE_LICENSE("GPL"); MODULE_ALIAS_CHARDEV_MAJOR(SCSI_CHANGER_MAJOR); +MODULE_ALIAS_SCSI_DEVICE(TYPE_MEDIUM_CHANGER); static int init = 1; module_param(init, int, 0444);