m68k: atari - Rename "mfp" to "st_mfp"
http://kisskb.ellerman.id.au/kisskb/buildresult/72115/: | net/mac80211/ieee80211_i.h:327: error: syntax error before 'volatile' | net/mac80211/ieee80211_i.h:350: error: syntax error before '}' token | net/mac80211/ieee80211_i.h:455: error: field 'sta' has incomplete type | distcc[19430] ERROR: compile net/mac80211/main.c on sprygo/32 failed This is caused by | # define mfp ((*(volatile struct MFP*)MFP_BAS)) in arch/m68k/include/asm/atarihw.h, which conflicts with the new "mfp" enum in net/mac80211/ieee80211_i.h. Rename "mfp" to "st_mfp", as it's a way too generic name for a global #define. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
adfafefd10
commit
3d92e8f3ae
@ -847,23 +847,23 @@ static int __init AtaIrqInit(void)
|
||||
of events. So all we need to keep the music playing is
|
||||
to provide the sound hardware with new data upon
|
||||
an interrupt from timer A. */
|
||||
mfp.tim_ct_a = 0; /* ++roman: Stop timer before programming! */
|
||||
mfp.tim_dt_a = 1; /* Cause interrupt after first event. */
|
||||
mfp.tim_ct_a = 8; /* Turn on event counting. */
|
||||
st_mfp.tim_ct_a = 0; /* ++roman: Stop timer before programming! */
|
||||
st_mfp.tim_dt_a = 1; /* Cause interrupt after first event. */
|
||||
st_mfp.tim_ct_a = 8; /* Turn on event counting. */
|
||||
/* Register interrupt handler. */
|
||||
if (request_irq(IRQ_MFP_TIMA, AtaInterrupt, IRQ_TYPE_SLOW, "DMA sound",
|
||||
AtaInterrupt))
|
||||
return 0;
|
||||
mfp.int_en_a |= 0x20; /* Turn interrupt on. */
|
||||
mfp.int_mk_a |= 0x20;
|
||||
st_mfp.int_en_a |= 0x20; /* Turn interrupt on. */
|
||||
st_mfp.int_mk_a |= 0x20;
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef MODULE
|
||||
static void AtaIrqCleanUp(void)
|
||||
{
|
||||
mfp.tim_ct_a = 0; /* stop timer */
|
||||
mfp.int_en_a &= ~0x20; /* turn interrupt off */
|
||||
st_mfp.tim_ct_a = 0; /* stop timer */
|
||||
st_mfp.int_en_a &= ~0x20; /* turn interrupt off */
|
||||
free_irq(IRQ_MFP_TIMA, AtaInterrupt);
|
||||
}
|
||||
#endif /* MODULE */
|
||||
@ -1599,7 +1599,7 @@ static int __init dmasound_atari_init(void)
|
||||
is_falcon = 0;
|
||||
} else
|
||||
return -ENODEV;
|
||||
if ((mfp.int_en_a & mfp.int_mk_a & 0x20) == 0)
|
||||
if ((st_mfp.int_en_a & st_mfp.int_mk_a & 0x20) == 0)
|
||||
return dmasound_init();
|
||||
else {
|
||||
printk("DMA sound driver: Timer A interrupt already in use\n");
|
||||
|
Reference in New Issue
Block a user