/* This function frees the irq and disables interrupts for the PS/2 device.  */
static void sxps2_close(struct serio *pserio)
/* This function frees the irq and disables interrupts for the PS/2 device.  */
static void sxps2_close(struct serio *pserio)
{
	struct xps2data *drvdata = pserio->port_data;
	out_be32(drvdata->base_address + XPS2_GIER_OFFSET, 0x00);
	out_be32(drvdata->base_address + XPS2_IPIER_OFFSET, 0x00);
	free_irq(drvdata->irq, drvdata);
}