OSDN Git Service

memory: emif: remove unused frequency and voltage notifiers
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 27 May 2021 15:41:01 +0000 (11:41 -0400)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 10 Jun 2021 07:24:46 +0000 (09:24 +0200)
commit729a611e6f53da00ed62a181f2d5d2bcf22d74d1
treed15222fc030c2f0783736219085be5cdc586642d
parent8e0d09b1232d0538066c40ed4c13086faccbdff6
memory: emif: remove unused frequency and voltage notifiers

The driver defined several functions related to handling of frequency
and voltage changes:
 - freq_post_notify_handling
 - freq_pre_notify_handling
 - volt_notify_handling

All these are static, not used inside or outside of driver, and marked
as unused with comment: "TODO: voltage notify handling should be hooked
up to regulator framework as soon as the necessary support is available
in mainline kernel. This function is un-used right now.".

These have been added with commit a93de288aad3 ("memory: emif: handle
frequency and voltage change events") in 2012 and are unused since then.
Additionally mentioned regulator and clock hooking did not happen since
then.  If it did not happen for nine years, let's assume it will not
happen suddenly now.

Remove all unused functions which also allows removal of "t_ck" static
variable "t_ck" and "addressing" member of private structure.

No functionality is lost.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210527154101.80556-1-krzysztof.kozlowski@canonical.com
drivers/memory/emif.c