[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1555073657-24386-1-git-send-email-fabien.dessenne@st.com>
Date: Fri, 12 Apr 2019 14:54:17 +0200
From: Fabien Dessenne <fabien.dessenne@...com>
To: Jiri Kosina <jikos@...nel.org>,
Benjamin Tissoires <benjamin.tissoires@...hat.com>,
<linux-input@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: Fabien Dessenne <fabien.dessenne@...com>
Subject: [PATCH] HID: rmi: fix devm_add_action_or_reset() parameter
The second parameter of devm_add_action_or_reset() shall be a function,
not a function address.
Signed-off-by: Fabien Dessenne <fabien.dessenne@...com>
---
drivers/hid/hid-rmi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hid/hid-rmi.c b/drivers/hid/hid-rmi.c
index 9e33165..8748d4d 100644
--- a/drivers/hid/hid-rmi.c
+++ b/drivers/hid/hid-rmi.c
@@ -623,7 +623,7 @@ static int rmi_setup_irq_domain(struct hid_device *hdev)
if (!hdata->domain)
return -ENOMEM;
- ret = devm_add_action_or_reset(&hdev->dev, &rmi_irq_teardown, hdata);
+ ret = devm_add_action_or_reset(&hdev->dev, rmi_irq_teardown, hdata);
if (ret)
return ret;
--
2.7.4
Powered by blists - more mailing lists