lirc: Fixes for some lirc_rpi issues

A couple of lirc_rpi fixes:
- Fix "warning: return from incompatible pointer type" compiler warnings,
- Fix lirc_rpi module loading when the requested in/out pins are already claimed.