Module Name: src Committed By: plunky Date: Fri Apr 6 20:24:29 UTC 2012
Modified Files: src/sys/dev/pci: agp.c Log Message: device_pmf_is_registered() is not required To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/sys/dev/pci/agp.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/agp.c diff -u src/sys/dev/pci/agp.c:1.79 src/sys/dev/pci/agp.c:1.80 --- src/sys/dev/pci/agp.c:1.79 Mon Apr 4 20:37:56 2011 +++ src/sys/dev/pci/agp.c Fri Apr 6 20:24:28 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: agp.c,v 1.79 2011/04/04 20:37:56 dyoung Exp $ */ +/* $NetBSD: agp.c,v 1.80 2012/04/06 20:24:28 plunky Exp $ */ /*- * Copyright (c) 2000 Doug Rabson @@ -65,7 +65,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.79 2011/04/04 20:37:56 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: agp.c,v 1.80 2012/04/06 20:24:28 plunky Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -374,11 +374,8 @@ agpattach(device_t parent, device_t self else sc->as_chipc = NULL; - if (!device_pmf_is_registered(self)) { - if (!pmf_device_register(self, NULL, agp_resume)) - aprint_error_dev(self, "couldn't establish power " - "handler\n"); - } + if (!pmf_device_register(self, NULL, agp_resume)) + aprint_error_dev(self, "couldn't establish power handler\n"); } CFATTACH_DECL_NEW(agp, sizeof(struct agp_softc),