From: patrick Date: Fri, 16 Dec 2022 18:08:08 +0000 (+0000) Subject: qcpdc(4)'s establish routine needs to return the wrapped cookie, not the X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6533953ebe6c077dc97a322fb4f8e9616b521941;p=openbsd qcpdc(4)'s establish routine needs to return the wrapped cookie, not the cookie it received from establishing the interrupt. --- diff --git a/sys/dev/fdt/qcpdc.c b/sys/dev/fdt/qcpdc.c index fb97237fbf9..c0068c189d4 100644 --- a/sys/dev/fdt/qcpdc.c +++ b/sys/dev/fdt/qcpdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qcpdc.c,v 1.1 2022/11/10 12:12:53 patrick Exp $ */ +/* $OpenBSD: qcpdc.c,v 1.2 2022/12/16 18:08:08 patrick Exp $ */ /* * Copyright (c) 2022 Patrick Wildt * @@ -205,7 +205,7 @@ qcpdc_intr_establish(void *aux, int *cells, int ipl, HSET4(sc, PDC_INTR_ENABLE(pin), PDC_INTR_ENABLE_BIT(pin)); splx(s); - return cookie; + return ih; } void