-/* $OpenBSD: pvbus.c,v 1.28 2024/05/24 10:05:55 jsg Exp $ */
+/* $OpenBSD: pvbus.c,v 1.29 2024/08/19 00:03:12 deraadt Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
extern void rdrand(void *);
-int pvbus_activate(struct device *, int);
int pvbus_match(struct device *, void *, void *);
void pvbus_attach(struct device *, struct device *, void *);
int pvbus_print(void *, const char *);
sizeof(struct pvbus_softc),
pvbus_match,
pvbus_attach,
- NULL,
- pvbus_activate
};
struct cfdriver pvbus_cd = {
}
}
-int
-pvbus_activate(struct device *self, int act)
-{
- int rv = 0;
-
- switch (act) {
- case DVACT_SUSPEND:
- rv = config_activate_children(self, act);
- break;
- case DVACT_RESUME:
- rv = config_activate_children(self, act);
- break;
- case DVACT_POWERDOWN:
- rv = config_activate_children(self, act);
- break;
- default:
- rv = config_activate_children(self, act);
- break;
- }
-
- return (rv);
-}
-
int
pvbus_search(struct device *parent, void *arg, void *aux)
{