Skip to content

Commit

Permalink
[PATCH] powerpc: fix oops in alsa powermac driver
Browse files Browse the repository at this point in the history
This fixes an oops in 2.6.16.X when loading the snd_powermac module. The
name of the requested module changed during the 2.6.16 development cycle
from i2c-keylargo to i2c-powermac.

Signed-off-by: Guido Guenther <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
ozbenh authored and paulusmack committed Apr 21, 2006
1 parent 5ad1bfe commit 4d6c588
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions drivers/macintosh/therm_adt746x.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,8 @@ thermostat_init(void)
if(therm_type == ADT7460)
device_create_file(&of_dev->dev, &dev_attr_sensor2_fan_speed);

#ifndef CONFIG_I2C_KEYWEST
request_module("i2c-keywest");
#ifndef CONFIG_I2C_POWERMAC
request_module("i2c-powermac");
#endif

return i2c_add_driver(&thermostat_driver);
Expand Down
4 changes: 2 additions & 2 deletions sound/oss/dmasound/tas_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ tas_init(int driver_id, const char *driver_name)

printk(KERN_INFO "tas driver [%s])\n", driver_name);

#ifndef CONFIG_I2C_KEYWEST
request_module("i2c-keywest");
#ifndef CONFIG_I2C_POWERMAC
request_module("i2c-powermac");
#endif
tas_node = find_devices("deq");
if (tas_node == NULL)
Expand Down
2 changes: 1 addition & 1 deletion sound/ppc/daca.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ int __init snd_pmac_daca_init(struct snd_pmac *chip)

#ifdef CONFIG_KMOD
if (current->fs->root)
request_module("i2c-keywest");
request_module("i2c-powermac");
#endif /* CONFIG_KMOD */

mix = kmalloc(sizeof(*mix), GFP_KERNEL);
Expand Down
2 changes: 1 addition & 1 deletion sound/ppc/tumbler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ int __init snd_pmac_tumbler_init(struct snd_pmac *chip)

#ifdef CONFIG_KMOD
if (current->fs->root)
request_module("i2c-keywest");
request_module("i2c-powermac");
#endif /* CONFIG_KMOD */

mix = kmalloc(sizeof(*mix), GFP_KERNEL);
Expand Down

0 comments on commit 4d6c588

Please sign in to comment.