Skip to content
Commit 5044f91b authored by Dušan Dragić's avatar Dušan Dragić Committed by popcornmix
Browse files

lirc_rpi: Don't register with lirc_dev if we can't claim gpio pins

Currently the lirc_rpi module always registers a new lirc device.
In case the gpio pins can't be claimed it exits without unregistering.

Skip registering with lirc_dev if pins can't be claimed.
Also, don't free gpio pins that we haven't claimed.
parent 4f8569e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment