/* Set IRQ configuration register for all ESS models  */
static int ess_common_set_irq_hw(sb_devc *devc)
/* Set IRQ configuration register for all ESS models  */
static int ess_common_set_irq_hw(sb_devc *devc)
{
	int irq_bits;
	if ((irq_bits = ess_irq_bits (devc->irq)) == -1) return 0;
	if (!ess_write (devc, 0xb1, 0x50 | (irq_bits << 2))) {
		printk(KERN_ERR "ES1688: Failed to write to IRQ config register\n");
		return 0;
	}
	return 1;
}