lkml.org 
[lkml]   [2004]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 2.6.9-ac4] delkin_cb: one-liner fix
Alan,

Here's a one-liner for delkin_cb in your latest 2.6.9-ac stream.
This ensures that pci_disable_device() is invoked when the
driver exits on failure to load.

Signed-off-by: Mark Lord <mlord@pobox.com>
--
Mark Lord
(hdparm keeper & the original "Linux IDE Guy")
--- linux-2.6.9-ac3-delkin/drivers/ide/pci/delkin_cb.c.orig 2004-10-21 21:44:45.000000000 -0400
+++ linux/drivers/ide/pci/delkin_cb.c 2004-10-25 22:45:32.000000000 -0400
@@ -83,6 +83,7 @@
rc = ide_register_hw(&hw, &hwif);
if (rc < 0) {
printk(KERN_ERR "delkin_cb: ide_register_hw failed (%d)\n", rc);
+ pci_disable_device(dev);
return -ENODEV;
}
pci_set_drvdata(dev, hwif);
\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.169 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site