Thanks for the comments Bartlomiej -- your input is always appreciated. Here's a new patch taking into account your comments. I have updated hwif_init to return 0 on success and -errno on failure. Thanks again, P.