Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 9 Oct 2002 14:37:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 9 Oct 2002 14:36:28 -0400 Received: from air-2.osdl.org ([65.172.181.6]:7088 "EHLO cherise.pdx.osdl.net") by vger.kernel.org with ESMTP id ; Wed, 9 Oct 2002 14:35:48 -0400 Date: Wed, 9 Oct 2002 11:43:59 -0700 (PDT) From: Patrick Mochel X-X-Sender: mochel@cherise.pdx.osdl.net To: torvalds@transmeta.com cc: linux-kernel@vger.kernel.org Subject: Re: [bk/patch] IDE driver model update In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 32 ChangeSet@1.730, 2002-10-09 11:40:34-07:00, mochel@osdl.org IDE: make ide_drive_remove() call driver's ->cleanup(). This was accidentally dropped before, but re-added now to completely mimic behavior of the reboot notifier IDE used to have. diff -Nru a/drivers/ide/ide.c b/drivers/ide/ide.c --- a/drivers/ide/ide.c Wed Oct 9 11:41:35 2002 +++ b/drivers/ide/ide.c Wed Oct 9 11:41:35 2002 @@ -3428,8 +3428,13 @@ ide_drive_t * drive = container_of(dev,ide_drive_t,gendev); ide_driver_t * driver = drive->driver; - if (driver && driver->standby) - driver->standby(drive); + if (driver) { + if (driver->standby) + driver->standby(drive); + if (driver->cleanup) + driver->cleanup(drive); + } + return 0; } - 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/