Re: [PATCH v2] Input: synaptics-rmi4 - convert irq distribution to irq_domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nick,

On Mon, Jan 29, 2018 at 09:12:09PM +0000, Nick Dyer wrote:
> @@ -1057,6 +1036,14 @@ int rmi_probe_interrupts(struct rmi_driver_data *data)
>  	if (data->bootloader_mode)
>  		dev_warn(dev, "Device in bootloader mode.\n");
>  
> +	/* Allocate and register a linear revmap irq_domain */
> +	data->irqdomain = irq_domain_add_linear(rmi_of_node, irq_count,

This code runs on non-OF systems, and irq_domain_add_linear() takes
fwnode nowadays. I guess you have been using an older kernel.

You also need to make sure you dispose of mappings and remove the domain
when you tear down the device.

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux