mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
[PATCH] Stop snd-powermac oopsing on non-pmac hardware.
We shouldn't be assuming that ppc_md.feature_call will be present. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
ac9af7cba9
commit
4e6a06eec4
1 changed files with 2 additions and 1 deletions
|
@ -765,7 +765,8 @@ snd_pmac_ctrl_intr(int irq, void *devid, struct pt_regs *regs)
|
|||
*/
|
||||
static void snd_pmac_sound_feature(pmac_t *chip, int enable)
|
||||
{
|
||||
ppc_md.feature_call(PMAC_FTR_SOUND_CHIP_ENABLE, chip->node, 0, enable);
|
||||
if (ppc_md.feature_call)
|
||||
ppc_md.feature_call(PMAC_FTR_SOUND_CHIP_ENABLE, chip->node, 0, enable);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue