From 2bc62deca48d4e48b34ffa22cb9403b25aaa9c56 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 17 Oct 2012 22:31:59 +0000 Subject: Swap arguments to wdog_register() since it is nicer, and prepare wdog_shutdown() for external usage. --- sys/dev/ipmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ipmi.c') diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index dd4c8c177ae..8e0705c9365 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.65 2010/05/24 14:25:20 deraadt Exp $ */ +/* $OpenBSD: ipmi.c,v 1.66 2012/10/17 22:32:01 deraadt Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave @@ -1744,7 +1744,7 @@ ipmi_attach(struct device *parent, struct device *self, void *aux) /* Setup Watchdog timer */ sc->sc_wdog_period = 0; - wdog_register(sc, ipmi_watchdog); + wdog_register(ipmi_watchdog, sc); /* lock around read_sensor so that no one messes with the bmc regs */ rw_init(&sc->sc_lock, DEVNAME(sc)); -- cgit v1.2.3-59-g8ed1b