1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00
openmptcprouter/6.12/target/linux/bcm27xx/patches-6.12/950-0561-misc-rp1-pio-Fix-copy-paste-error-in-pio_rp1.h.patch
Ycarus (Yannick Chabanois) bdb9b0046f Add bcm27xx 6.12 test support
2024-12-20 14:17:26 +01:00

25 lines
870 B
Diff

From 6471b211626e75e1e9fb3275ab5d2e85d5b7f9c4 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.com>
Date: Mon, 25 Nov 2024 16:19:55 +0000
Subject: [PATCH 561/697] misc/rp1-pio: Fix copy/paste error in pio_rp1.h
As per the subject, there was a copy/paste error that caused
pio_sm_unclaim from a driver to result in a call to
pio_sm_claim. Fix it.
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
---
include/linux/pio_rp1.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/include/linux/pio_rp1.h
+++ b/include/linux/pio_rp1.h
@@ -320,7 +320,7 @@ static inline int pio_sm_unclaim(struct
if (bad_params_if(client, sm >= NUM_PIO_STATE_MACHINES))
return -EINVAL;
- return rp1_pio_sm_claim(client, &args);
+ return rp1_pio_sm_unclaim(client, &args);
}
static inline int pio_claim_unused_sm(struct rp1_pio_client *client, bool required)