- if (all->par.lc_ss0_usr)
- of_iounmap(all->par.lc_ss0_usr, 0x1000);
- if (all->par.ld_ss0)
- of_iounmap(all->par.ld_ss0, 0x1000);
- if (all->par.ld_ss1)
- of_iounmap(all->par.ld_ss1, 0x1000);
- if (all->par.lx_krn)
- of_iounmap(all->par.lx_krn, 0x1000);
- if (all->par.cursor)
- of_iounmap(all->par.cursor, sizeof(struct leo_cursor));
- if (all->info.screen_base)
- of_iounmap(all->info.screen_base, 0x800000);
+ if (par->lc_ss0_usr)
+ of_iounmap(&op->resource[0], par->lc_ss0_usr, 0x1000);
+ if (par->ld_ss0)
+ of_iounmap(&op->resource[0], par->ld_ss0, 0x1000);
+ if (par->ld_ss1)
+ of_iounmap(&op->resource[0], par->ld_ss1, 0x1000);
+ if (par->lx_krn)
+ of_iounmap(&op->resource[0], par->lx_krn, 0x1000);
+ if (par->cursor)
+ of_iounmap(&op->resource[0],
+ par->cursor, sizeof(struct leo_cursor));
+ if (info->screen_base)
+ of_iounmap(&op->resource[0], info->screen_base, 0x800000);