diff options
author | Lee Jones <lee.jones@linaro.org> | 2016-09-14 06:51:42 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-10-04 10:48:05 -0400 |
commit | 45ff2b685a6e8588ed637ba711b9a42ad1963066 (patch) | |
tree | 2a6ddfe70c699d024682a2a21e51764fbdd5cac9 | |
parent | c45eab2cb06092aa61e67fc6801cf0d6fac29482 (diff) |
mfd: db8500-prcmu: Remove unused *prcmu_set_ddr_opp() calls
There are no call sites for these functions. Strip them out.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/db8500-prcmu.c | 19 | ||||
-rw-r--r-- | include/linux/mfd/db8500-prcmu.h | 6 | ||||
-rw-r--r-- | include/linux/mfd/dbx500-prcmu.h | 9 |
3 files changed, 0 insertions, 34 deletions
diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c index 388e268b9bcf..ca38a6a14110 100644 --- a/drivers/mfd/db8500-prcmu.c +++ b/drivers/mfd/db8500-prcmu.c | |||
@@ -938,25 +938,6 @@ int db8500_prcmu_get_ddr_opp(void) | |||
938 | return readb(PRCM_DDR_SUBSYS_APE_MINBW); | 938 | return readb(PRCM_DDR_SUBSYS_APE_MINBW); |
939 | } | 939 | } |
940 | 940 | ||
941 | /** | ||
942 | * db8500_set_ddr_opp - set the appropriate DDR OPP | ||
943 | * @opp: The new DDR operating point to which transition is to be made | ||
944 | * Returns: 0 on success, non-zero on failure | ||
945 | * | ||
946 | * This function sets the operating point of the DDR. | ||
947 | */ | ||
948 | static bool enable_set_ddr_opp; | ||
949 | int db8500_prcmu_set_ddr_opp(u8 opp) | ||
950 | { | ||
951 | if (opp < DDR_100_OPP || opp > DDR_25_OPP) | ||
952 | return -EINVAL; | ||
953 | /* Changing the DDR OPP can hang the hardware pre-v21 */ | ||
954 | if (enable_set_ddr_opp) | ||
955 | writeb(opp, PRCM_DDR_SUBSYS_APE_MINBW); | ||
956 | |||
957 | return 0; | ||
958 | } | ||
959 | |||
960 | /* Divide the frequency of certain clocks by 2 for APE_50_PARTLY_25_OPP. */ | 941 | /* Divide the frequency of certain clocks by 2 for APE_50_PARTLY_25_OPP. */ |
961 | static void request_even_slower_clocks(bool enable) | 942 | static void request_even_slower_clocks(bool enable) |
962 | { | 943 | { |
diff --git a/include/linux/mfd/db8500-prcmu.h b/include/linux/mfd/db8500-prcmu.h index 0bd69446bb05..7ba67b55b312 100644 --- a/include/linux/mfd/db8500-prcmu.h +++ b/include/linux/mfd/db8500-prcmu.h | |||
@@ -538,7 +538,6 @@ int db8500_prcmu_get_arm_opp(void); | |||
538 | int db8500_prcmu_set_ape_opp(u8 opp); | 538 | int db8500_prcmu_set_ape_opp(u8 opp); |
539 | int db8500_prcmu_get_ape_opp(void); | 539 | int db8500_prcmu_get_ape_opp(void); |
540 | int db8500_prcmu_request_ape_opp_100_voltage(bool enable); | 540 | int db8500_prcmu_request_ape_opp_100_voltage(bool enable); |
541 | int db8500_prcmu_set_ddr_opp(u8 opp); | ||
542 | int db8500_prcmu_get_ddr_opp(void); | 541 | int db8500_prcmu_get_ddr_opp(void); |
543 | 542 | ||
544 | u32 db8500_prcmu_read(unsigned int reg); | 543 | u32 db8500_prcmu_read(unsigned int reg); |
@@ -594,11 +593,6 @@ static inline int prcmu_release_usb_wakeup_state(void) | |||
594 | return 0; | 593 | return 0; |
595 | } | 594 | } |
596 | 595 | ||
597 | static inline int db8500_prcmu_set_ddr_opp(u8 opp) | ||
598 | { | ||
599 | return 0; | ||
600 | } | ||
601 | |||
602 | static inline int db8500_prcmu_get_ddr_opp(void) | 596 | static inline int db8500_prcmu_get_ddr_opp(void) |
603 | { | 597 | { |
604 | return DDR_100_OPP; | 598 | return DDR_100_OPP; |
diff --git a/include/linux/mfd/dbx500-prcmu.h b/include/linux/mfd/dbx500-prcmu.h index 5d374601404c..2e2c6a63a065 100644 --- a/include/linux/mfd/dbx500-prcmu.h +++ b/include/linux/mfd/dbx500-prcmu.h | |||
@@ -269,10 +269,6 @@ unsigned long prcmu_clock_rate(u8 clock); | |||
269 | long prcmu_round_clock_rate(u8 clock, unsigned long rate); | 269 | long prcmu_round_clock_rate(u8 clock, unsigned long rate); |
270 | int prcmu_set_clock_rate(u8 clock, unsigned long rate); | 270 | int prcmu_set_clock_rate(u8 clock, unsigned long rate); |
271 | 271 | ||
272 | static inline int prcmu_set_ddr_opp(u8 opp) | ||
273 | { | ||
274 | return db8500_prcmu_set_ddr_opp(opp); | ||
275 | } | ||
276 | static inline int prcmu_get_ddr_opp(void) | 272 | static inline int prcmu_get_ddr_opp(void) |
277 | { | 273 | { |
278 | return db8500_prcmu_get_ddr_opp(); | 274 | return db8500_prcmu_get_ddr_opp(); |
@@ -489,11 +485,6 @@ static inline int prcmu_get_arm_opp(void) | |||
489 | return ARM_100_OPP; | 485 | return ARM_100_OPP; |
490 | } | 486 | } |
491 | 487 | ||
492 | static inline int prcmu_set_ddr_opp(u8 opp) | ||
493 | { | ||
494 | return 0; | ||
495 | } | ||
496 | |||
497 | static inline int prcmu_get_ddr_opp(void) | 488 | static inline int prcmu_get_ddr_opp(void) |
498 | { | 489 | { |
499 | return DDR_100_OPP; | 490 | return DDR_100_OPP; |