public
Created

Fix a build error in Linux 3.9 (and possibly 3.8)

  • Download Gist
rtsx-remove-devinit.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
commit 41c027ae2136fc48d1b6eac3a17fbd2b8b4d3717
Author: Peter Wu <lekensteyn@gmail.com>
Date: Fri May 24 13:38:20 2013 +0200
 
Remove references to __devinit/__devexit (dropped in Linux 3.8)
 
diff --git a/rtsx.c b/rtsx.c
index c1c76f3..70a8d03 100644
--- a/rtsx.c
+++ b/rtsx.c
@@ -890,7 +890,7 @@ static void rtsx_init_options(struct rtsx_chip *chip)
chip->handshake_en = 1;
}
-static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
+static int rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
{
struct Scsi_Host *host;
struct rtsx_dev *dev;
@@ -1045,7 +1045,7 @@ errout:
}
-static void __devexit rtsx_remove(struct pci_dev *pci)
+static void rtsx_remove(struct pci_dev *pci)
{
struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci);
@@ -1071,7 +1071,7 @@ static struct pci_driver driver = {
.name = CR_DRIVER_NAME,
.id_table = rts_bpp_ids,
.probe = rtsx_probe,
- .remove = __devexit_p(rtsx_remove),
+ .remove = rtsx_remove,
#ifdef CONFIG_PM
.suspend = rtsx_suspend,
.resume = rtsx_resume,

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.