Fix i386 LINT build broken by r209371.

There appeared such legacy thing as APM, that somehow breaking RTC.
This commit is contained in:
Alexander Motin 2010-06-21 19:53:47 +00:00
parent bfc72ed568
commit df471e067f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=209401

View File

@ -55,6 +55,8 @@ __FBSDID("$FreeBSD$");
#define RTC_LOCK mtx_lock_spin(&clock_lock)
#define RTC_UNLOCK mtx_unlock_spin(&clock_lock)
int atrtcclock_disable = 0;
static int rtc_reg = -1;
static u_char rtc_statusa = RTCSA_DIVIDER | RTCSA_NOPROF;
static u_char rtc_statusb = RTCSB_24HR;
@ -267,6 +269,7 @@ atrtc_attach(device_t dev)
clock_register(dev, 1000000);
bzero(&sc->et, sizeof(struct eventtimer));
if (haveirq &&
!atrtcclock_disable &&
(resource_int_value(device_get_name(dev), device_get_unit(dev),
"clock", &i) != 0 || i != 0)) {
sc->et.et_name = "RTC";