aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2016-06-08 12:07:42 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-06-13 02:50:13 -0400
commit27cdb5d0fd35b3c48927385402d83c936037a2bf (patch)
tree1c4763f716fc08f2d177153989502c2f520f87c4
parentf703851af072b153abc928917f2ec35d4d70a851 (diff)
pinctrl: nomadik: fix warnings from unexported functions
There are five functions in the driver that are defined but only used locally. Since these are not used in the current kernel, delete them to avoid the following warnings: drivers/pinctrl/nomadik/pinctrl-nomadik.c:1036:6: warning: symbol 'nmk_gpio_clocks_enable' was not declared. Should it be static? drivers/pinctrl/nomadik/pinctrl-nomadik.c:1050:6: warning: symbol 'nmk_gpio_clocks_disable' was not declared. Should it be static? drivers/pinctrl/nomadik/pinctrl-nomadik.c:1073:6: warning: symbol 'nmk_gpio_wakeups_suspend' was not declared. Should it be static? drivers/pinctrl/nomadik/pinctrl-nomadik.c:1094:6: warning: symbol 'nmk_gpio_wakeups_resume' was not declared. Should it be static? drivers/pinctrl/nomadik/pinctrl-nomadik.c:1120:6: warning: symbol 'nmk_gpio_read_pull' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/nomadik/pinctrl-nomadik.c96
1 files changed, 0 insertions, 96 deletions
diff --git a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
index ccbfc325c778..83f3892d5409 100644
--- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c
+++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c
@@ -1033,102 +1033,6 @@ static inline void nmk_gpio_dbg_show_one(struct seq_file *s,
1033#define nmk_gpio_dbg_show NULL 1033#define nmk_gpio_dbg_show NULL
1034#endif 1034#endif
1035 1035
1036void nmk_gpio_clocks_enable(void)
1037{
1038 int i;
1039
1040 for (i = 0; i < NUM_BANKS; i++) {
1041 struct nmk_gpio_chip *chip = nmk_gpio_chips[i];
1042
1043 if (!chip)
1044 continue;
1045
1046 clk_enable(chip->clk);
1047 }
1048}
1049
1050void nmk_gpio_clocks_disable(void)
1051{
1052 int i;
1053
1054 for (i = 0; i < NUM_BANKS; i++) {
1055 struct nmk_gpio_chip *chip = nmk_gpio_chips[i];
1056
1057 if (!chip)
1058 continue;
1059
1060 clk_disable(chip->clk);
1061 }
1062}
1063
1064/*
1065 * Called from the suspend/resume path to only keep the real wakeup interrupts
1066 * (those that have had set_irq_wake() called on them) as wakeup interrupts,
1067 * and not the rest of the interrupts which we needed to have as wakeups for
1068 * cpuidle.
1069 *
1070 * PM ops are not used since this needs to be done at the end, after all the
1071 * other drivers are done with their suspend callbacks.
1072 */
1073void nmk_gpio_wakeups_suspend(void)
1074{
1075 int i;
1076
1077 for (i = 0; i < NUM_BANKS; i++) {
1078 struct nmk_gpio_chip *chip = nmk_gpio_chips[i];
1079
1080 if (!chip)
1081 break;
1082
1083 clk_enable(chip->clk);
1084
1085 writel(chip->rwimsc & chip->real_wake,
1086 chip->addr + NMK_GPIO_RWIMSC);
1087 writel(chip->fwimsc & chip->real_wake,
1088 chip->addr + NMK_GPIO_FWIMSC);
1089
1090 clk_disable(chip->clk);
1091 }
1092}
1093
1094void nmk_gpio_wakeups_resume(void)
1095{
1096 int i;
1097
1098 for (i = 0; i < NUM_BANKS; i++) {
1099 struct nmk_gpio_chip *chip = nmk_gpio_chips[i];
1100
1101 if (!chip)
1102 break;
1103
1104 clk_enable(chip->clk);
1105
1106 writel(chip->rwimsc, chip->addr + NMK_GPIO_RWIMSC);
1107 writel(chip->fwimsc, chip->addr + NMK_GPIO_FWIMSC);
1108
1109 clk_disable(chip->clk);
1110 }
1111}
1112
1113/*
1114 * Read the pull up/pull down status.
1115 * A bit set in 'pull_up' means that pull up
1116 * is selected if pull is enabled in PDIS register.
1117 * Note: only pull up/down set via this driver can
1118 * be detected due to HW limitations.
1119 */
1120void nmk_gpio_read_pull(int gpio_bank, u32 *pull_up)
1121{
1122 if (gpio_bank < NUM_BANKS) {
1123 struct nmk_gpio_chip *chip = nmk_gpio_chips[gpio_bank];
1124
1125 if (!chip)
1126 return;
1127
1128 *pull_up = chip->pull_up;
1129 }
1130}
1131
1132/* 1036/*
1133 * We will allocate memory for the state container using devm* allocators 1037 * We will allocate memory for the state container using devm* allocators
1134 * binding to the first device reaching this point, it doesn't matter if 1038 * binding to the first device reaching this point, it doesn't matter if