strict kobj signatures: fix adb_hb_controller_poll impl in powermac

the method return u_int, not void

Reviewed by:	imp, current@
Approved by:	jhb (mentor)
This commit is contained in:
Andriy Gapon 2009-06-11 17:16:04 +00:00
parent 1c44eb75f7
commit 65f4467938
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194027
2 changed files with 7 additions and 5 deletions

View File

@ -68,7 +68,7 @@ static int cuda_detach(device_t);
static u_int cuda_adb_send(device_t dev, u_char command_byte, int len,
u_char *data, u_char poll);
static u_int cuda_adb_autopoll(device_t dev, uint16_t mask);
static void cuda_poll(device_t dev);
static u_int cuda_poll(device_t dev);
static void cuda_send_inbound(struct cuda_softc *sc);
static void cuda_send_outbound(struct cuda_softc *sc);
@ -471,16 +471,17 @@ cuda_send_inbound(struct cuda_softc *sc)
mtx_unlock(&sc->sc_mutex);
}
static void
static u_int
cuda_poll(device_t dev)
{
struct cuda_softc *sc = device_get_softc(dev);
if (sc->sc_state == CUDA_IDLE && !cuda_intr_state(sc) &&
!sc->sc_waiting)
return;
return (0);
cuda_intr(dev);
return (0);
}
static void

View File

@ -68,7 +68,7 @@ static int pmu_detach(device_t);
static u_int pmu_adb_send(device_t dev, u_char command_byte, int len,
u_char *data, u_char poll);
static u_int pmu_adb_autopoll(device_t dev, uint16_t mask);
static void pmu_poll(device_t dev);
static u_int pmu_poll(device_t dev);
static void pmu_set_sleepled(void *xsc, int onoff);
static int pmu_server_mode(SYSCTL_HANDLER_ARGS);
@ -575,10 +575,11 @@ done:
}
static void
static u_int
pmu_poll(device_t dev)
{
pmu_intr(dev);
return (0);
}
static void