1. 27 Feb, 2016 2 commits
    • Stephen Boyd's avatar
      clk: at91: Remove impossible checks for of_clk_get_parent_count() · 8c1b1e54
      Stephen Boyd authored
      These checks for < 0 are impossible now that
      of_clk_get_parent_count() returns an unsigned int. Change the
      checks for == 0 and update the type.
      
      Cc: Boris Brezillon <boris.brezillon@free-electrons.com>
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      8c1b1e54
    • Stephen Boyd's avatar
      clk: Make of_clk_get_parent_count() return unsigned ints · 929e7f3b
      Stephen Boyd authored
      Russell King recently pointed out a bug in the clk-gpio code
      where it fails to register the clk if of_clk_get_parent_count()
      returns an error because the "clocks" property isn't present in
      the DT node. If we're trying to count parents from DT we'd like
      to know the count, not if there is a "clocks" property or not.
      Furthermore, some drivers are assigning the return value to their
      clk_init_data::num_parents member which is unsigned, leading to
      potentially large numbers of parents when the property isn't
      present.
      
      Let's change the API to return an unsigned int instead of an int.
      All the callers just want to know the count anyway, and this
      avoids the bug that was in the clk-gpio driver.
      Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      929e7f3b
  2. 26 Feb, 2016 3 commits
  3. 25 Feb, 2016 14 commits
  4. 24 Feb, 2016 1 commit
  5. 23 Feb, 2016 1 commit
  6. 22 Feb, 2016 9 commits
  7. 19 Feb, 2016 3 commits
  8. 18 Feb, 2016 2 commits
  9. 17 Feb, 2016 1 commit
  10. 16 Feb, 2016 4 commits