Module Name: src Committed By: msaitoh Date: Mon Oct 11 15:08:17 UTC 2021
Modified Files: src/sys/dev/pci: if_aq.c Log Message: Add pmf_device_register(). To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/if_aq.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_aq.c diff -u src/sys/dev/pci/if_aq.c:1.28 src/sys/dev/pci/if_aq.c:1.29 --- src/sys/dev/pci/if_aq.c:1.28 Tue Oct 5 14:18:17 2021 +++ src/sys/dev/pci/if_aq.c Mon Oct 11 15:08:17 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: if_aq.c,v 1.28 2021/10/05 14:18:17 ryo Exp $ */ +/* $NetBSD: if_aq.c,v 1.29 2021/10/11 15:08:17 msaitoh Exp $ */ /** * aQuantia Corporation Network Driver @@ -62,7 +62,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.28 2021/10/05 14:18:17 ryo Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_aq.c,v 1.29 2021/10/11 15:08:17 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_if_aq.h" @@ -1530,6 +1530,11 @@ aq_attach(device_t parent, device_t self AQ_EVCNT_ATTACH_MISC(sc, cprc, "RX coalesced packet"); #endif + if (pmf_device_register(self, NULL, NULL)) + pmf_class_network_register(self, ifp); + else + aprint_error_dev(self, "couldn't establish power handler\n"); + return; attach_failure: