-
Notifications
You must be signed in to change notification settings - Fork 11
/
below38.patch
106 lines (90 loc) · 3.57 KB
/
below38.patch
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
diff --git a/madifx.c b/madifx.c
index a2e629e..b9e8c8e 100644
--- a/madifx.c
+++ b/madifx.c
@@ -459,9 +459,9 @@ static DEFINE_PCI_DEVICE_TABLE(snd_madifx_ids) = {
MODULE_DEVICE_TABLE(pci, snd_madifx_ids);
/* prototypes */
-static int snd_madifx_create_alsa_devices(struct snd_card *card,
+static int __devinit snd_madifx_create_alsa_devices(struct snd_card *card,
struct hdspm *hdspm);
-static int snd_madifx_create_pcm(struct snd_card *card,
+static int __devinit snd_madifx_create_pcm(struct snd_card *card,
struct hdspm *hdspm);
static inline void snd_madifx_initialize_midi_flush(struct hdspm *hdspm);
@@ -1135,7 +1135,7 @@ static struct snd_rawmidi_ops snd_madifx_midi_input = {
.trigger = snd_madifx_midi_input_trigger,
};
-static int snd_madifx_create_midi(struct snd_card *card,
+static int __devinit snd_madifx_create_midi(struct snd_card *card,
struct hdspm *hdspm, int id)
{
int err;
@@ -2374,7 +2374,7 @@ static void snd_madifx_proc_ports_out(struct snd_info_entry *entry,
#endif
-static void snd_madifx_proc_init(struct hdspm *hdspm)
+static void __devinit snd_madifx_proc_init(struct hdspm *hdspm)
{
struct snd_info_entry *entry;
@@ -3513,7 +3513,7 @@ static struct snd_pcm_ops snd_madifx_capture_ops = {
.page = snd_pcm_sgbuf_ops_page,
};
-static int snd_madifx_create_hwdep(struct snd_card *card,
+static int __devinit snd_madifx_create_hwdep(struct snd_card *card,
struct hdspm *hdspm)
{
struct snd_hwdep *hw;
@@ -3539,7 +3539,7 @@ static int snd_madifx_create_hwdep(struct snd_card *card,
/*------------------------------------------------------------
memory interface
------------------------------------------------------------*/
-static int snd_madifx_preallocate_memory(struct hdspm *hdspm)
+static int __devinit snd_madifx_preallocate_memory(struct hdspm *hdspm)
{
int err;
#ifdef CONFIG_SND_MADIFX_BROKEN
@@ -3615,7 +3615,7 @@ static int snd_madifx_preallocate_memory(struct hdspm *hdspm)
/* ------------- ALSA Devices ---------------------------- */
-static int snd_madifx_create_pcm(struct snd_card *card,
+static int __devinit snd_madifx_create_pcm(struct snd_card *card,
struct hdspm *hdspm)
{
struct snd_pcm *pcm;
@@ -3651,7 +3651,7 @@ static inline void snd_madifx_initialize_midi_flush(struct hdspm *hdspm)
snd_madifx_flush_midi_input(hdspm, i);
}
-static int snd_madifx_create_alsa_devices(struct snd_card *card,
+static int __devinit snd_madifx_create_alsa_devices(struct snd_card *card,
struct hdspm *hdspm)
{
int err, i;
@@ -3712,7 +3712,7 @@ static int snd_madifx_create_alsa_devices(struct snd_card *card,
return 0;
}
-static int snd_madifx_create(struct snd_card *card,
+static int __devinit snd_madifx_create(struct snd_card *card,
struct hdspm *hdspm) {
struct pci_dev *pci = hdspm->pci;
@@ -3914,7 +3914,7 @@ static void snd_madifx_card_free(struct snd_card *card)
}
-static int snd_madifx_probe(struct pci_dev *pci,
+static int __devinit snd_madifx_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
static int dev;
@@ -3969,7 +3969,7 @@ static int snd_madifx_probe(struct pci_dev *pci,
return 0;
}
-static void snd_madifx_remove(struct pci_dev *pci)
+static void __devexit snd_madifx_remove(struct pci_dev *pci)
{
snd_card_free(pci_get_drvdata(pci));
pci_set_drvdata(pci, NULL);
@@ -3979,7 +3979,7 @@ static struct pci_driver madifx_driver = {
.name = KBUILD_MODNAME,
.id_table = snd_madifx_ids,
.probe = snd_madifx_probe,
- .remove = snd_madifx_remove,
+ .remove = __devexit_p(snd_madifx_remove),
};
module_pci_driver(madifx_driver);