projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9af7c
)
[PATCH] Stop snd-powermac oopsing on non-pmac hardware.
author
David Woodhouse
<dwmw2@infradead.org>
Wed, 17 Aug 2005 10:36:35 +0000
(11:36 +0100)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/ppc/pmac.c
b/sound/ppc/pmac.c
index 844d76152ea271028654cdcc4767c41d2db0dffc..c89e82eb06a6df91840c5863e8804d643db94e09 100644
(file)
--- 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);
}
/*