I think adding this to the module source should do it.

EXPORT_SYMBOL_GPL(nr_irqs);