mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user