]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: w90x900: normalize clk API
authorArnd Bergmann <arnd@arndb.de>
Tue, 28 Jan 2014 20:17:41 +0000 (21:17 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 27 Jul 2017 20:57:36 +0000 (22:57 +0200)
commitbd7fefe1f06ca6cc2d1503def95bf53e2549a44b
tree987325ddda2cdaf478298b43a0df08470ebb5c4a
parentef8aa4e0a0df2470148203725acd8b6e75acdc0b
ARM: w90x900: normalize clk API

w90x900 still provides its own variant of the clk API rather than using
the generic COMMON_CLK API. This generally works, but it causes some link
errors with drivers using the clk_set_rate, clk_get_parent, clk_set_parent
or clk_round_rate functions when a platform lacks those interfaces.

This adds empty stub implementations for each of them, and I don't even
try to do something useful here but instead just print a WARN() message
to make it obvious what is going on if they ever end up being called.

The drivers that call these won't be used on these platforms (otherwise
we'd get a link error today), so the added code is harmless bloat and
will warn about accidental use.

A while ago there was a proposal to change w90x900 to use the common-clk
implementation, which would be the way it should be handled properly.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-w90x900/clock.c