git: c1d90b2d0222 - main - vgapm: Use devclass_find to lookup the vga devclass in suspend and resume.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:30:18 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=c1d90b2d0222c648f2f88d5c7c878aef816c6d32
commit c1d90b2d0222c648f2f88d5c7c878aef816c6d32
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 17:29:15 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-21 17:29:15 +0000
vgapm: Use devclass_find to lookup the vga devclass in suspend and resume.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D35009
---
sys/isa/vga_isa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/isa/vga_isa.c b/sys/isa/vga_isa.c
index b5660a1f70d3..ac628922148d 100644
--- a/sys/isa/vga_isa.c
+++ b/sys/isa/vga_isa.c
@@ -280,7 +280,7 @@ vgapm_suspend(device_t dev)
error = bus_generic_suspend(dev);
if (error != 0)
return (error);
- vga_dev = devclass_get_device(isavga_devclass, 0);
+ vga_dev = devclass_get_device(devclass_find(VGA_DRIVER_NAME), 0);
if (vga_dev == NULL)
return (0);
vga_suspend(vga_dev);
@@ -293,7 +293,7 @@ vgapm_resume(device_t dev)
{
device_t vga_dev;
- vga_dev = devclass_get_device(isavga_devclass, 0);
+ vga_dev = devclass_get_device(devclass_find(VGA_DRIVER_NAME), 0);
if (vga_dev != NULL)
vga_resume(vga_dev);