]> err.no Git - linux-2.6/commitdiff
[PATCH] Stop snd-powermac oopsing on non-pmac hardware.
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 17 Aug 2005 10:36:35 +0000 (11:36 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 17 Aug 2005 21:55:37 +0000 (14:55 -0700)
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>
sound/ppc/pmac.c

index 844d76152ea271028654cdcc4767c41d2db0dffc..c89e82eb06a6df91840c5863e8804d643db94e09 100644 (file)
@@ -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);
 }
 
 /*