Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: ccree - make cc_pm_{suspend,resume}() static

cc_pm_suspend() and cc_pm_resume() are not used outside
drivers/crypto/ccree/cc_pm.c.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Geert Uytterhoeven and committed by
Herbert Xu
f33d807c 8f76b352

+6 -8
+6 -6
drivers/crypto/ccree/cc_pm.c
··· 15 15 #define POWER_DOWN_ENABLE 0x01 16 16 #define POWER_DOWN_DISABLE 0x00 17 17 18 - const struct dev_pm_ops ccree_pm = { 19 - SET_RUNTIME_PM_OPS(cc_pm_suspend, cc_pm_resume, NULL) 20 - }; 21 - 22 - int cc_pm_suspend(struct device *dev) 18 + static int cc_pm_suspend(struct device *dev) 23 19 { 24 20 struct cc_drvdata *drvdata = dev_get_drvdata(dev); 25 21 ··· 26 30 return 0; 27 31 } 28 32 29 - int cc_pm_resume(struct device *dev) 33 + static int cc_pm_resume(struct device *dev) 30 34 { 31 35 int rc; 32 36 struct cc_drvdata *drvdata = dev_get_drvdata(dev); ··· 57 61 58 62 return 0; 59 63 } 64 + 65 + const struct dev_pm_ops ccree_pm = { 66 + SET_RUNTIME_PM_OPS(cc_pm_suspend, cc_pm_resume, NULL) 67 + }; 60 68 61 69 int cc_pm_get(struct device *dev) 62 70 {
-2
drivers/crypto/ccree/cc_pm.h
··· 15 15 16 16 extern const struct dev_pm_ops ccree_pm; 17 17 18 - int cc_pm_suspend(struct device *dev); 19 - int cc_pm_resume(struct device *dev); 20 18 int cc_pm_get(struct device *dev); 21 19 void cc_pm_put_suspend(struct device *dev); 22 20