Commit 371b9217 authored by Federico Vaga's avatar Federico Vaga

sw:drv: add SPI according to capabilities

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 7abd0b20
......@@ -188,10 +188,12 @@ static int spec_fpga_devices_init(struct spec_dev *spec)
sizeof(fpga_mfd_devs[n_mfd]));
n_mfd++;
memcpy(&fpga_mfd_devs[n_mfd],
&spec_fpga_mfd_devs[SPEC_FPGA_MFD_SPI],
sizeof(fpga_mfd_devs[n_mfd]));
n_mfd++;
if (spec->meta->cap & SPEC_META_CAP_SPI) {
memcpy(&fpga_mfd_devs[n_mfd],
&spec_fpga_mfd_devs[SPEC_FPGA_MFD_SPI],
sizeof(fpga_mfd_devs[n_mfd]));
n_mfd++;
}
vic_domain = irq_find_host((void *)&spec->vic_pdev->dev);
if (!vic_domain) {
......
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