From: David Woodhouse Date: Wed, 17 Aug 2005 10:36:35 +0000 (+0100) Subject: [PATCH] Stop snd-powermac oopsing on non-pmac hardware. X-Git-Tag: v2.6.13-rc7~60^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e6a06eec46067df3c30fe1fbc2e1a7cc37b9678;p=linux-2.6 [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 Signed-off-by: Linus Torvalds --- diff --git a/sound/ppc/pmac.c b/sound/ppc/pmac.c index 844d76152e..c89e82eb06 100644 --- a/sound/ppc/pmac.c +++ b/sound/ppc/pmac.c @@ -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); } /*