mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: zorro: Fix reading of proc/bus/zorro/* in small chunks zorro: BKL removal m68k/mac: Fix RTC on PMU machines m68k/mac: Add color classic ii support arch/m68k/sun3/leds.c: Checkpatch cleanup
This commit is contained in:
commit
a92b166e6b
4 changed files with 23 additions and 13 deletions
|
|
@ -332,6 +332,15 @@ static struct mac_model mac_data_table[] = {
|
|||
.scc_type = MAC_SCC_II,
|
||||
.nubus_type = MAC_NUBUS,
|
||||
.floppy_type = MAC_FLOPPY_SWIM_ADDR2,
|
||||
}, {
|
||||
.ident = MAC_MODEL_CCLII,
|
||||
.name = "Color Classic II",
|
||||
.adb_type = MAC_ADB_CUDA,
|
||||
.via_type = MAC_VIA_IIci,
|
||||
.scsi_type = MAC_SCSI_OLD,
|
||||
.scc_type = MAC_SCC_II,
|
||||
.nubus_type = MAC_NUBUS,
|
||||
.floppy_type = MAC_FLOPPY_SWIM_ADDR2,
|
||||
},
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ static void cuda_write_pram(int offset, __u8 data)
|
|||
#define cuda_write_pram NULL
|
||||
#endif
|
||||
|
||||
#if 0 /* def CONFIG_ADB_PMU68K */
|
||||
#ifdef CONFIG_ADB_PMU68K
|
||||
static long pmu_read_time(void)
|
||||
{
|
||||
struct adb_request req;
|
||||
|
|
@ -102,8 +102,8 @@ static long pmu_read_time(void)
|
|||
while (!req.complete)
|
||||
pmu_poll();
|
||||
|
||||
time = (req.reply[0] << 24) | (req.reply[1] << 16)
|
||||
| (req.reply[2] << 8) | req.reply[3];
|
||||
time = (req.reply[1] << 24) | (req.reply[2] << 16)
|
||||
| (req.reply[3] << 8) | req.reply[4];
|
||||
return time - RTC_OFFSET;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ void sun3_leds(unsigned char byte)
|
|||
unsigned char dfc;
|
||||
|
||||
GET_DFC(dfc);
|
||||
SET_DFC(FC_CONTROL);
|
||||
SET_CONTROL_BYTE(AC_LEDS,byte);
|
||||
SET_DFC(FC_CONTROL);
|
||||
SET_CONTROL_BYTE(AC_LEDS, byte);
|
||||
SET_DFC(dfc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue