All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: torvalds@transmeta.com, kernel list <linux-kernel@vger.kernel.org>
Subject: prevent swsusp from eating disks
Date: Wed, 30 Oct 2002 00:14:02 +0100	[thread overview]
Message-ID: <20021029231402.GA134@elf.ucw.cz> (raw)

Hi!

Patrick broke IDE so it wanted to eat data, again. Fixed, please
apply,
								Pavel


--- clean/drivers/ide/ide-disk.c	2002-10-18 23:41:15.000000000 +0200
+++ linux-swsusp/drivers/ide/ide-disk.c	2002-10-21 14:36:36.000000000 +0200
@@ -1891,8 +1891,10 @@
 
 static int idedisk_init (void)
 {
-	ide_register_driver(&idedisk_driver);
-	return 0;
+	int status = ide_register_driver(&idedisk_driver);
+	idedisk_driver.gen_driver.suspend = idedisk_suspend;
+	idedisk_driver.gen_driver.resume = idedisk_resume;
+	return status;
 }
 
 module_init(idedisk_init);
--- clean/drivers/ide/ide-probe.c	2002-10-20 16:22:39.000000000 +0200
+++ linux-swsusp/drivers/ide/ide-probe.c	2002-10-21 14:45:41.000000000 +0200
@@ -1059,6 +1059,7 @@
 			 "%s","IDE Drive");
 		drive->gendev.parent = &hwif->gendev;
 		drive->gendev.bus = &ide_bus_type;
+		drive->gendev.driver_data = drive;
 		if (drive->present)
 			device_register(&drive->gendev);
 	}
 

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?

             reply	other threads:[~2002-10-29 22:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-29 23:14 Pavel Machek [this message]
2002-10-30  0:39 ` prevent swsusp from eating disks Linus Torvalds
2002-10-30 15:20   ` Alan Cox
2002-10-30 15:48     ` Benjamin Herrenschmidt
2002-10-30 19:42       ` Alan Cox
2002-10-31  1:39         ` Benjamin Herrenschmidt
2002-10-31 21:36           ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021029231402.GA134@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.