Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2023 16:07:53 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: a4b19cf5c76a - main - hptmv: remove vestigial EVENTHANDLER_DEREGISTER()
Message-ID:  <202311231607.3ANG7rG4007257@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=a4b19cf5c76ac66d02a3ef8a549115ba865d630c

commit a4b19cf5c76ac66d02a3ef8a549115ba865d630c
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-11-23 15:22:33 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-11-23 16:07:42 +0000

    hptmv: remove vestigial EVENTHANDLER_DEREGISTER()
    
    The registration was removed in favor of DEVICE_SHUTDOWN(). Drop the
    unused eventhandler tag from the IAL_ADAPTER_T structure.
    
    Reviewed by:    jhb
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Fixes:  cd3ef66680a8 ("Use DEVICE_SHUTDOWN(9) mechanism...")
    Differential Revision:  https://reviews.freebsd.org/D42334
---
 sys/dev/hptmv/entry.c | 1 -
 sys/dev/hptmv/osbsd.h | 2 --
 2 files changed, 3 deletions(-)

diff --git a/sys/dev/hptmv/entry.c b/sys/dev/hptmv/entry.c
index fd3b808e1e73..0157a27c3728 100644
--- a/sys/dev/hptmv/entry.c
+++ b/sys/dev/hptmv/entry.c
@@ -2155,7 +2155,6 @@ hpt_shutdown(device_t dev)
 	
 		pAdapter = device_get_softc(dev);
 
-		EVENTHANDLER_DEREGISTER(shutdown_final, pAdapter->eh);
 		mtx_lock(&pAdapter->lock);
 		FlushAdapter(pAdapter);
 		mtx_unlock(&pAdapter->lock);
diff --git a/sys/dev/hptmv/osbsd.h b/sys/dev/hptmv/osbsd.h
index a9240af16c89..0e4d94fb4756 100644
--- a/sys/dev/hptmv/osbsd.h
+++ b/sys/dev/hptmv/osbsd.h
@@ -190,8 +190,6 @@ typedef struct IALAdapter
 	UCHAR               status;
 	UCHAR               ver_601;
 	UCHAR               beeping;
-
-	eventhandler_tag	eh;
 }
 IAL_ADAPTER_T;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311231607.3ANG7rG4007257>