Re: [bk/patch] driver model update: device_unregister()

From: Alexander Viro (viro@math.psu.edu)
Date: Tue Oct 08 2002 - 20:04:52 EST


On Tue, 8 Oct 2002, Patrick Mochel wrote:

>
> ChangeSet@1.600, 2002-10-08 17:32:17-07:00, mochel@osdl.org
> IDE: call device_unregister() instead of put_device() in ide-disk->cleanup().
>
> diff -Nru a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
> --- a/drivers/ide/ide-disk.c Tue Oct 8 17:55:17 2002
> +++ b/drivers/ide/ide-disk.c Tue Oct 8 17:55:17 2002
> @@ -1692,7 +1692,7 @@
> {
> struct gendisk *g = drive->disk;
>
> - put_device(&drive->disk->disk_dev);
> + device_unregister(&drive->disk->disk_dev);

While you are at it, _please_, take it into ide_drive. ->disk_dev is
handled by parititions/check.c; please don't overload it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:29 EST