Set attached to true when attach completes.

Reported by Ramakrishna Rao Desetti on port-arm
This commit is contained in:
skrll 2017-12-29 11:06:26 +00:00
parent a6ef8f31d6
commit d33c290378
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: a9wdt.c,v 1.5 2016/10/04 15:12:29 kiyohara Exp $ */
/* $NetBSD: a9wdt.c,v 1.6 2017/12/29 11:06:26 skrll Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.5 2016/10/04 15:12:29 kiyohara Exp $");
__KERNEL_RCSID(0, "$NetBSD: a9wdt.c,v 1.6 2017/12/29 11:06:26 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -257,4 +257,6 @@ a9wdt_attach(device_t parent, device_t self, void *aux)
if (sysmon_wdog_register(&sc->sc_smw) != 0)
aprint_error("%s: unable to register with sysmon\n",
device_xname(sc->sc_dev));
attached = true;
}

View File

@ -31,7 +31,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: armperiph.c,v 1.11 2017/05/26 21:17:46 jmcneill Exp $");
__KERNEL_RCSID(1, "$NetBSD: armperiph.c,v 1.12 2017/12/29 11:06:26 skrll Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -237,4 +237,5 @@ armperiph_attach(device_t parent, device_t self, void *aux)
config_found(self, &mpcaa, NULL);
}
attached = true;
}