rayddteam

uart_cpu_eqres for FDT

Oct 25th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Index: uart_cpu_fdt.c
  2. ===================================================================
  3. --- uart_cpu_fdt.c (revision 257107)
  4. +++ uart_cpu_fdt.c (working copy)
  5. @@ -86,7 +86,13 @@
  6. uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2)
  7. {
  8.  
  9. - return ((b1->bsh == b2->bsh && b1->bst == b2->bst) ? 1 : 0);
  10. + if (b1->bst != b2->bst)
  11. + return (0);
  12. + if (pmap_kextract(b1->bsh) == 0)
  13. + return (0);
  14. + if (pmap_kextract(b2->bsh) == 0)
  15. + return (0);
  16. + return ((pmap_kextract(b1->bsh) == pmap_kextract(b2->bsh)) ? 1 : 0);
  17. }
  18.  
  19. int
Advertisement
Add Comment
Please, Sign In to add comment