Commit 3475723d authored by Federico Vaga's avatar Federico Vaga

replace fwspec with fwnode to find IRQ domain

this goes together with general-cores release v1.1.2
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 74f73fb3
...@@ -217,14 +217,8 @@ static struct resource svec_fpga_vic_res[] = { ...@@ -217,14 +217,8 @@ static struct resource svec_fpga_vic_res[] = {
struct irq_domain *svec_fpga_irq_find_host(struct device *dev) struct irq_domain *svec_fpga_irq_find_host(struct device *dev)
{ {
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
struct irq_fwspec fwspec = { return irq_find_matching_fwnode(dev->fwnode, DOMAIN_BUS_ANY);
.fwnode = dev->fwnode,
.param_count = 2,
.param[0] = ((unsigned long)dev >> 32) & 0xffffffff,
.param[1] = ((unsigned long)dev) & 0xffffffff,
};
return irq_find_matching_fwspec(&fwspec, DOMAIN_BUS_ANY);
#else #else
return (irq_find_host((void *)dev)); return (irq_find_host((void *)dev));
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment