Skip to content

Commit

Permalink
misc/rp1-pio: Fix copy/paste error in pio_rp1.h
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pelwell committed Nov 25, 2024
1 parent 7121ef1 commit ae98140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/pio_rp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static inline int pio_sm_unclaim(struct rp1_pio_client *client, uint sm)
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)
Expand Down

0 comments on commit ae98140

Please sign in to comment.