]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge tag 'clk-for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/clk...
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 30 Jul 2016 18:20:02 +0000 (11:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 30 Jul 2016 18:20:02 +0000 (11:20 -0700)
Pull clk updates from Michael Turquette:
 "The bulk of the changes are updates and fixes to existing clk provider
  drivers, along with a pretty standard number of new drivers.  The core
  recieved a small number of updates as well.

  Core changes of note:
   - removed CLK_IS_ROOT flag

  New clk provider drivers:
   - Renesas r8a7796 clock pulse generator / module standby and
     software reset
   - Allwinner sun8i H3 clock controller unit
   - AmLogic meson8b clock controller (rewritten)
   - AmLogic gxbb clock controller
   - support for some new ICs was added by simple changes to static
     data tables for chips sharing the same family

  Driver updates of note:
   - the Allwinner sunxi clock driver infrastucture was rewritten to
     comform to the state of the art at drivers/clk/sunxi-ng.  The old
     implementation is still supported for backwards compatibility with
     the DT ABI"

* tag 'clk-for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: (162 commits)
  clk: Makefile: re-sort and clean up
  Revert "clk: gxbb: expose CLKID_MMC_PCLK"
  clk: samsung: Allow modular build of the Audio Subsystem CLKCON driver
  clk: samsung: make clk-s5pv210-audss explicitly non-modular
  clk: exynos5433: remove CLK_IGNORE_UNUSED flag from SPI clocks
  clk: oxnas: Add hardware dependencies
  clk: imx7d: do not set parent of ethernet time/ref clocks
  ARM: dt: sun8i: switch the H3 to the new CCU driver
  clk: sunxi-ng: h3: Fix Kconfig symbol typo
  clk: sunxi-ng: h3: Fix audio clock divider offset
  clk: sunxi-ng: Add H3 clocks
  clk: sunxi-ng: Add N-K-M-P factor clock
  clk: sunxi-ng: Add N-K-M Factor clock
  clk: sunxi-ng: Add N-M-factor clock support
  clk: sunxi-ng: Add N-K-factor clock support
  clk: sunxi-ng: Add M-P factor clock support
  clk: sunxi-ng: Add divider
  clk: sunxi-ng: Add phase clock support
  clk: sunxi-ng: Add mux clock support
  clk: sunxi-ng: Add gate clock support
  ...

1  2 
include/linux/clk.h

diff --combined include/linux/clk.h
index 834179f3fa72a4508509f0a3991385f63cfed417,a89ba4e7af7ac23e0cfe9d722621a3c5e8a57e57..123c02788807f553feeeca0d2ea9c39cddab537f
@@@ -20,8 -20,6 +20,6 @@@ struct device
  
  struct clk;
  
- #ifdef CONFIG_COMMON_CLK
  /**
   * DOC: clk notifier callback types
   *
@@@ -78,6 -76,8 +76,8 @@@ struct clk_notifier_data 
        unsigned long           new_rate;
  };
  
+ #ifdef CONFIG_COMMON_CLK
  /**
   * clk_notifier_register: register a clock rate-change notifier callback
   * @clk: clock whose rate we are interested in
@@@ -140,6 -140,18 +140,18 @@@ bool clk_is_match(const struct clk *p, 
  
  #else
  
+ static inline int clk_notifier_register(struct clk *clk,
+                                       struct notifier_block *nb)
+ {
+       return -ENOTSUPP;
+ }
+ static inline int clk_notifier_unregister(struct clk *clk,
+                                         struct notifier_block *nb)
+ {
+       return -ENOTSUPP;
+ }
  static inline long clk_get_accuracy(struct clk *clk)
  {
        return -ENOTSUPP;
@@@ -461,10 -473,6 +473,10 @@@ static inline struct clk *clk_get_paren
        return NULL;
  }
  
 +static inline struct clk *clk_get_sys(const char *dev_id, const char *con_id)
 +{
 +      return NULL;
 +}
  #endif
  
  /* clk_prepare_enable helps cases using clk_enable in non-atomic context. */