Re: [PATCH] scsi sysfs update (upper 2/3)

Christoph Hellwig
2002-11-07T23:29:47Z

On Wed, Nov 06, 2002 at 11:39:43PM -0800, Mike Anderson wrote:
> + .scsi_driverfs_driver = {
> + .name = "sd",
> + },

can we changhe scsi_driverfs_driver to something saner? E.g. gen_driver?

> static struct scsi_disk *sd_find_by_sdev(Scsi_Device *sd)
> @@ -1346,7 +1349,7 @@
> if (!majors)
> return -ENODEV;
>
> - rc = scsi_register_device(&sd_template);
> + rc = scsi_bus_driver_register(&sd_template);

Umm, no. We don't register a bus. Just leave the name unchanged until
we there is some commonly agreed upon upper layer terminology.