Skip to content

Commit

Permalink
libnfb - MI: [FIX] remove old compatibility code
Browse files Browse the repository at this point in the history
User gets incorrect access (to the default resource: PCI0,BAR0)
for component, which is inside an unattched endpoint.
  • Loading branch information
martinspinler committed Feb 15, 2023
1 parent 322ccc4 commit d41c609
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions libnfb/src/bus/mi.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,8 @@ int nfb_bus_open_mi(void *dev_priv, int bus_node, int comp_node, void **bus_priv
/* Find MI driver node in FDT */
fdt_offset = fdt_path_offset(fdt, path);
if (fdt_offset < 0) {
/* Compatibility for old driver DT layout */
fdt_offset = fdt_path_offset(fdt, DRIVER_MI_PATH);

if (fdt_offset < 0) {
errno = ENODEV;
goto err_fdt_path;
}
errno = ENODEV;
goto err_fdt_path;
}

/* Get mmap size */
Expand Down

0 comments on commit d41c609

Please sign in to comment.