Skip to content

Instantly share code, notes, and snippets.

@Lekensteyn
Created May 24, 2013 13:16
Show Gist options
  • Save Lekensteyn/5643433 to your computer and use it in GitHub Desktop.
Save Lekensteyn/5643433 to your computer and use it in GitHub Desktop.
Fix a build error in Linux 3.9 (and possibly 3.8)
commit 41c027ae2136fc48d1b6eac3a17fbd2b8b4d3717
Author: Peter Wu <[email protected]>
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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment