diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/misc/cb710 | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/misc/cb710')
-rw-r--r-- | drivers/misc/cb710/core.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/misc/cb710/core.c b/drivers/misc/cb710/core.c index 2e50f811ff5..68cd05b6d82 100644 --- a/drivers/misc/cb710/core.c +++ b/drivers/misc/cb710/core.c | |||
@@ -30,7 +30,7 @@ void cb710_pci_update_config_reg(struct pci_dev *pdev, | |||
30 | EXPORT_SYMBOL_GPL(cb710_pci_update_config_reg); | 30 | EXPORT_SYMBOL_GPL(cb710_pci_update_config_reg); |
31 | 31 | ||
32 | /* Some magic writes based on Windows driver init code */ | 32 | /* Some magic writes based on Windows driver init code */ |
33 | static int cb710_pci_configure(struct pci_dev *pdev) | 33 | static int __devinit cb710_pci_configure(struct pci_dev *pdev) |
34 | { | 34 | { |
35 | unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); | 35 | unsigned int devfn = PCI_DEVFN(PCI_SLOT(pdev->devfn), 0); |
36 | struct pci_dev *pdev0; | 36 | struct pci_dev *pdev0; |
@@ -96,7 +96,7 @@ static void cb710_release_slot(struct device *dev) | |||
96 | #endif | 96 | #endif |
97 | } | 97 | } |
98 | 98 | ||
99 | static int cb710_register_slot(struct cb710_chip *chip, | 99 | static int __devinit cb710_register_slot(struct cb710_chip *chip, |
100 | unsigned slot_mask, unsigned io_offset, const char *name) | 100 | unsigned slot_mask, unsigned io_offset, const char *name) |
101 | { | 101 | { |
102 | int nr = chip->slots; | 102 | int nr = chip->slots; |
@@ -180,7 +180,7 @@ static int cb710_suspend(struct pci_dev *pdev, pm_message_t state) | |||
180 | pci_save_state(pdev); | 180 | pci_save_state(pdev); |
181 | pci_disable_device(pdev); | 181 | pci_disable_device(pdev); |
182 | if (state.event & PM_EVENT_SLEEP) | 182 | if (state.event & PM_EVENT_SLEEP) |
183 | pci_set_power_state(pdev, PCI_D3hot); | 183 | pci_set_power_state(pdev, PCI_D3cold); |
184 | return 0; | 184 | return 0; |
185 | } | 185 | } |
186 | 186 | ||
@@ -201,7 +201,7 @@ static int cb710_resume(struct pci_dev *pdev) | |||
201 | 201 | ||
202 | #endif /* CONFIG_PM */ | 202 | #endif /* CONFIG_PM */ |
203 | 203 | ||
204 | static int cb710_probe(struct pci_dev *pdev, | 204 | static int __devinit cb710_probe(struct pci_dev *pdev, |
205 | const struct pci_device_id *ent) | 205 | const struct pci_device_id *ent) |
206 | { | 206 | { |
207 | struct cb710_chip *chip; | 207 | struct cb710_chip *chip; |
@@ -245,7 +245,6 @@ static int cb710_probe(struct pci_dev *pdev, | |||
245 | if (err) | 245 | if (err) |
246 | return err; | 246 | return err; |
247 | 247 | ||
248 | spin_lock_init(&chip->irq_lock); | ||
249 | chip->pdev = pdev; | 248 | chip->pdev = pdev; |
250 | chip->iobase = pcim_iomap_table(pdev)[0]; | 249 | chip->iobase = pcim_iomap_table(pdev)[0]; |
251 | 250 | ||
@@ -305,7 +304,7 @@ unreg_mmc: | |||
305 | return err; | 304 | return err; |
306 | } | 305 | } |
307 | 306 | ||
308 | static void cb710_remove_one(struct pci_dev *pdev) | 307 | static void __devexit cb710_remove_one(struct pci_dev *pdev) |
309 | { | 308 | { |
310 | struct cb710_chip *chip = pci_get_drvdata(pdev); | 309 | struct cb710_chip *chip = pci_get_drvdata(pdev); |
311 | unsigned long flags; | 310 | unsigned long flags; |
@@ -332,7 +331,7 @@ static struct pci_driver cb710_driver = { | |||
332 | .name = KBUILD_MODNAME, | 331 | .name = KBUILD_MODNAME, |
333 | .id_table = cb710_pci_tbl, | 332 | .id_table = cb710_pci_tbl, |
334 | .probe = cb710_probe, | 333 | .probe = cb710_probe, |
335 | .remove = cb710_remove_one, | 334 | .remove = __devexit_p(cb710_remove_one), |
336 | #ifdef CONFIG_PM | 335 | #ifdef CONFIG_PM |
337 | .suspend = cb710_suspend, | 336 | .suspend = cb710_suspend, |
338 | .resume = cb710_resume, | 337 | .resume = cb710_resume, |