qcacmn: Fix rmmod crash on 8074 soc emulation setup

Use correct dev_id in free_irq and add conditional check to avoid
access to registers not present on 8074 soc emulation.

Change-Id: I60055b8426b1941fca1b2f238d4e26b47ead54f9
1 file changed