Commit b01a5edc authored by Federico Vaga's avatar Federico Vaga

Merge tag 'v2.0.4' into develop

2.0.4 - 2021-07-29
==================
Fixed
-----
- sw: improve compatibility with newer ( > 3.10) Linux kernel version
parents 74f73fb3 c0d76b04
......@@ -2,6 +2,12 @@
Change Log
==========
2.0.4 - 2021-07-29
==================
Fixed
-----
- sw: improve compatibility with newer ( > 3.10) Linux kernel version
2.0.3 - 2021-03-22
==================
Fixed
......
......@@ -217,14 +217,8 @@ static struct resource svec_fpga_vic_res[] = {
struct irq_domain *svec_fpga_irq_find_host(struct device *dev)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
struct irq_fwspec fwspec = {
.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);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0)
return irq_find_matching_fwnode(dev->fwnode, DOMAIN_BUS_ANY);
#else
return (irq_find_host((void *)dev));
#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