Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2022 12:53:14 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6e8d6761312e - main - LinuxKPI: add devm_request_irq()
Message-ID:  <202211071253.2A7CrEWD023881@gitrepo.freebsd.org>

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

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

commit 6e8d6761312e92227a87e0e07b51f89ff81a24b3
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-10-30 17:41:53 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-11-07 12:51:01 +0000

    LinuxKPI: add devm_request_irq()
    
    Add devm_request_irq() needed by a driver.  Turns out all we need
    is a wrapper with the right arguments to lkpi_request_irq().
    
    MFC after:      3 days
    Reviewed by:    emaste
    Differential Revision: https://reviews.freebsd.org/D37217
---
 sys/compat/linuxkpi/common/include/linux/interrupt.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/interrupt.h b/sys/compat/linuxkpi/common/include/linux/interrupt.h
index 905a29a77f91..d44b813ada8d 100644
--- a/sys/compat/linuxkpi/common/include/linux/interrupt.h
+++ b/sys/compat/linuxkpi/common/include/linux/interrupt.h
@@ -70,6 +70,14 @@ request_threaded_irq(int irq, irq_handler_t handler,
 	    flags, name, arg));
 }
 
+static inline int
+devm_request_irq(struct device *dev, int irq,
+    irq_handler_t handler, unsigned long flags, const char *name, void *arg)
+{
+
+	return (lkpi_request_irq(dev, irq, handler, NULL, flags, name, arg));
+}
+
 static inline int
 devm_request_threaded_irq(struct device *dev, int irq,
     irq_handler_t handler, irq_handler_t thread_handler,



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