Porting Interrupt registertion code from kernel 2.6 to kernel 4.14