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-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e6a06eec46067df3c30fe1fbc2e1a7cc37b9678;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [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 844d76152ea..c89e82eb06a 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); } /*