/* For IRQ based systems these callbacks can be used  */
int notifier_add_irq(struct hvc_struct *hp, int irq)
/* For IRQ based systems these callbacks can be used  */
int notifier_add_irq(struct hvc_struct *hp, int irq)
{
	int rc;
	if (!irq) {
		hp->irq_requested = 0;
		return 0;
	}
	rc = request_irq(irq, hvc_handle_interrupt, IRQF_DISABLED,
			   "hvc_console", hp);
	if (!rc)
		hp->irq_requested = 1;
	return rc;
}