diff options
Diffstat (limited to 'sound/aoa')
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-onyx.c | 4 | ||||
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-tas.c | 4 | ||||
-rw-r--r-- | sound/aoa/soundbus/core.c | 2 | ||||
-rw-r--r-- | sound/aoa/soundbus/i2sbus/i2sbus-core.c | 5 | ||||
-rw-r--r-- | sound/aoa/soundbus/soundbus.h | 2 |
5 files changed, 8 insertions, 9 deletions
diff --git a/sound/aoa/codecs/snd-aoa-codec-onyx.c b/sound/aoa/codecs/snd-aoa-codec-onyx.c index e91f9f66f395..ded516717940 100644 --- a/sound/aoa/codecs/snd-aoa-codec-onyx.c +++ b/sound/aoa/codecs/snd-aoa-codec-onyx.c | |||
@@ -1018,7 +1018,7 @@ static int onyx_create(struct i2c_adapter *adapter, | |||
1018 | onyx->i2c.driver = &onyx_driver; | 1018 | onyx->i2c.driver = &onyx_driver; |
1019 | onyx->i2c.adapter = adapter; | 1019 | onyx->i2c.adapter = adapter; |
1020 | onyx->i2c.addr = addr & 0x7f; | 1020 | onyx->i2c.addr = addr & 0x7f; |
1021 | strlcpy(onyx->i2c.name, "onyx audio codec", I2C_NAME_SIZE-1); | 1021 | strlcpy(onyx->i2c.name, "onyx audio codec", I2C_NAME_SIZE); |
1022 | 1022 | ||
1023 | if (i2c_attach_client(&onyx->i2c)) { | 1023 | if (i2c_attach_client(&onyx->i2c)) { |
1024 | printk(KERN_ERR PFX "failed to attach to i2c\n"); | 1024 | printk(KERN_ERR PFX "failed to attach to i2c\n"); |
@@ -1033,7 +1033,7 @@ static int onyx_create(struct i2c_adapter *adapter, | |||
1033 | goto fail; | 1033 | goto fail; |
1034 | } | 1034 | } |
1035 | 1035 | ||
1036 | strlcpy(onyx->codec.name, "onyx", MAX_CODEC_NAME_LEN-1); | 1036 | strlcpy(onyx->codec.name, "onyx", MAX_CODEC_NAME_LEN); |
1037 | onyx->codec.owner = THIS_MODULE; | 1037 | onyx->codec.owner = THIS_MODULE; |
1038 | onyx->codec.init = onyx_init_codec; | 1038 | onyx->codec.init = onyx_init_codec; |
1039 | onyx->codec.exit = onyx_exit_codec; | 1039 | onyx->codec.exit = onyx_exit_codec; |
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.c b/sound/aoa/codecs/snd-aoa-codec-tas.c index 041fe52cbf29..2f771f57c76f 100644 --- a/sound/aoa/codecs/snd-aoa-codec-tas.c +++ b/sound/aoa/codecs/snd-aoa-codec-tas.c | |||
@@ -899,14 +899,14 @@ static int tas_create(struct i2c_adapter *adapter, | |||
899 | tas->i2c.addr = addr; | 899 | tas->i2c.addr = addr; |
900 | /* seems that half is a saner default */ | 900 | /* seems that half is a saner default */ |
901 | tas->drc_range = TAS3004_DRC_MAX / 2; | 901 | tas->drc_range = TAS3004_DRC_MAX / 2; |
902 | strlcpy(tas->i2c.name, "tas audio codec", I2C_NAME_SIZE-1); | 902 | strlcpy(tas->i2c.name, "tas audio codec", I2C_NAME_SIZE); |
903 | 903 | ||
904 | if (i2c_attach_client(&tas->i2c)) { | 904 | if (i2c_attach_client(&tas->i2c)) { |
905 | printk(KERN_ERR PFX "failed to attach to i2c\n"); | 905 | printk(KERN_ERR PFX "failed to attach to i2c\n"); |
906 | goto fail; | 906 | goto fail; |
907 | } | 907 | } |
908 | 908 | ||
909 | strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN-1); | 909 | strlcpy(tas->codec.name, "tas", MAX_CODEC_NAME_LEN); |
910 | tas->codec.owner = THIS_MODULE; | 910 | tas->codec.owner = THIS_MODULE; |
911 | tas->codec.init = tas_init_codec; | 911 | tas->codec.init = tas_init_codec; |
912 | tas->codec.exit = tas_exit_codec; | 912 | tas->codec.exit = tas_exit_codec; |
diff --git a/sound/aoa/soundbus/core.c b/sound/aoa/soundbus/core.c index 8b2e9b905cda..64d163914335 100644 --- a/sound/aoa/soundbus/core.c +++ b/sound/aoa/soundbus/core.c | |||
@@ -163,8 +163,6 @@ static int soundbus_device_resume(struct device * dev) | |||
163 | 163 | ||
164 | #endif /* CONFIG_PM */ | 164 | #endif /* CONFIG_PM */ |
165 | 165 | ||
166 | extern struct device_attribute soundbus_dev_attrs[]; | ||
167 | |||
168 | static struct bus_type soundbus_bus_type = { | 166 | static struct bus_type soundbus_bus_type = { |
169 | .name = "aoa-soundbus", | 167 | .name = "aoa-soundbus", |
170 | .probe = soundbus_probe, | 168 | .probe = soundbus_probe, |
diff --git a/sound/aoa/soundbus/i2sbus/i2sbus-core.c b/sound/aoa/soundbus/i2sbus/i2sbus-core.c index 0fccdbf51663..efb9441b3acf 100644 --- a/sound/aoa/soundbus/i2sbus/i2sbus-core.c +++ b/sound/aoa/soundbus/i2sbus/i2sbus-core.c | |||
@@ -23,9 +23,6 @@ | |||
23 | MODULE_LICENSE("GPL"); | 23 | MODULE_LICENSE("GPL"); |
24 | MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); | 24 | MODULE_AUTHOR("Johannes Berg <johannes@sipsolutions.net>"); |
25 | MODULE_DESCRIPTION("Apple Soundbus: I2S support"); | 25 | MODULE_DESCRIPTION("Apple Soundbus: I2S support"); |
26 | /* for auto-loading, declare that we handle this weird | ||
27 | * string that macio puts into the relevant device */ | ||
28 | MODULE_ALIAS("of:Ni2sTi2sC"); | ||
29 | 26 | ||
30 | static int force; | 27 | static int force; |
31 | module_param(force, int, 0444); | 28 | module_param(force, int, 0444); |
@@ -37,6 +34,8 @@ static struct of_device_id i2sbus_match[] = { | |||
37 | { } | 34 | { } |
38 | }; | 35 | }; |
39 | 36 | ||
37 | MODULE_DEVICE_TABLE(of, i2sbus_match); | ||
38 | |||
40 | static int alloc_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, | 39 | static int alloc_dbdma_descriptor_ring(struct i2sbus_dev *i2sdev, |
41 | struct dbdma_command_mem *r, | 40 | struct dbdma_command_mem *r, |
42 | int numcmds) | 41 | int numcmds) |
diff --git a/sound/aoa/soundbus/soundbus.h b/sound/aoa/soundbus/soundbus.h index 5c27297835d7..622cd37a0118 100644 --- a/sound/aoa/soundbus/soundbus.h +++ b/sound/aoa/soundbus/soundbus.h | |||
@@ -199,4 +199,6 @@ struct soundbus_driver { | |||
199 | extern int soundbus_register_driver(struct soundbus_driver *drv); | 199 | extern int soundbus_register_driver(struct soundbus_driver *drv); |
200 | extern void soundbus_unregister_driver(struct soundbus_driver *drv); | 200 | extern void soundbus_unregister_driver(struct soundbus_driver *drv); |
201 | 201 | ||
202 | extern struct device_attribute soundbus_dev_attrs[]; | ||
203 | |||
202 | #endif /* __SOUNDBUS_H */ | 204 | #endif /* __SOUNDBUS_H */ |