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.
Loading
Please register or sign in to comment