diff options
Diffstat (limited to 'sound/ppc/keywest.c')
-rw-r--r-- | sound/ppc/keywest.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index a5afb2682e7f..835fa19ed461 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c | |||
@@ -33,10 +33,6 @@ | |||
33 | static struct pmac_keywest *keywest_ctx; | 33 | static struct pmac_keywest *keywest_ctx; |
34 | 34 | ||
35 | 35 | ||
36 | #ifndef i2c_device_name | ||
37 | #define i2c_device_name(x) ((x)->name) | ||
38 | #endif | ||
39 | |||
40 | static int keywest_probe(struct i2c_client *client, | 36 | static int keywest_probe(struct i2c_client *client, |
41 | const struct i2c_device_id *id) | 37 | const struct i2c_device_id *id) |
42 | { | 38 | { |
@@ -56,7 +52,7 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter) | |||
56 | if (! keywest_ctx) | 52 | if (! keywest_ctx) |
57 | return -EINVAL; | 53 | return -EINVAL; |
58 | 54 | ||
59 | if (strncmp(i2c_device_name(adapter), "mac-io", 6)) | 55 | if (strncmp(adapter->name, "mac-io", 6)) |
60 | return 0; /* ignored */ | 56 | return 0; /* ignored */ |
61 | 57 | ||
62 | memset(&info, 0, sizeof(struct i2c_board_info)); | 58 | memset(&info, 0, sizeof(struct i2c_board_info)); |
@@ -109,7 +105,7 @@ void snd_pmac_keywest_cleanup(struct pmac_keywest *i2c) | |||
109 | } | 105 | } |
110 | } | 106 | } |
111 | 107 | ||
112 | int __init snd_pmac_tumbler_post_init(void) | 108 | int __devinit snd_pmac_tumbler_post_init(void) |
113 | { | 109 | { |
114 | int err; | 110 | int err; |
115 | 111 | ||
@@ -124,7 +120,7 @@ int __init snd_pmac_tumbler_post_init(void) | |||
124 | } | 120 | } |
125 | 121 | ||
126 | /* exported */ | 122 | /* exported */ |
127 | int __init snd_pmac_keywest_init(struct pmac_keywest *i2c) | 123 | int __devinit snd_pmac_keywest_init(struct pmac_keywest *i2c) |
128 | { | 124 | { |
129 | int err; | 125 | int err; |
130 | 126 | ||