Skip to content

Commit ae98140

Browse files
committed
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 <[email protected]>
1 parent 7121ef1 commit ae98140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/pio_rp1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static inline int pio_sm_unclaim(struct rp1_pio_client *client, uint sm)
320320
if (bad_params_if(client, sm >= NUM_PIO_STATE_MACHINES))
321321
return -EINVAL;
322322

323-
return rp1_pio_sm_claim(client, &args);
323+
return rp1_pio_sm_unclaim(client, &args);
324324
}
325325

326326
static inline int pio_claim_unused_sm(struct rp1_pio_client *client, bool required)

0 commit comments

Comments
 (0)