Arnd Bergmann
9f47b68eab
gpio: xgene: mark PM functions as __maybe_unused
...
commit b115bebc07 upstream.
When CONFIG_PM_SLEEP is disabled, we get a warning about unused functions:
drivers/gpio/gpio-xgene.c:155:12: warning: 'xgene_gpio_resume' defined but not used [-Wunused-function]
static int xgene_gpio_resume(struct device *dev)
^~~~~~~~~~~~~~~~~
drivers/gpio/gpio-xgene.c:142:12: warning: 'xgene_gpio_suspend' defined but not used [-Wunused-function]
static int xgene_gpio_suspend(struct device *dev)
The warnings are harmless and can be avoided by simplifying the code and marking
the functions as __maybe_unused.
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-02-25 11:05:52 +01:00
..
2016-06-23 11:07:12 +02:00
2016-06-08 10:08:12 +02:00
2016-06-13 14:48:10 +02:00
2017-12-14 09:28:18 +01:00
2016-09-13 10:35:56 +02:00
2016-09-23 15:11:09 +02:00
2018-02-03 17:05:35 +01:00
2016-09-23 15:13:04 +02:00
2016-09-13 10:35:56 +02:00
2016-06-08 10:49:58 +02:00
2016-09-13 10:35:56 +02:00
2016-09-13 10:35:56 +02:00
2016-07-22 15:30:42 +02:00
2016-09-18 13:35:06 +02:00
2016-08-11 13:37:25 +02:00
2016-09-28 09:28:34 -07:00
2018-02-25 11:05:51 +01:00
2018-02-03 17:05:35 +01:00
2016-09-13 10:35:56 +02:00
2016-09-23 15:10:00 +02:00
2016-09-13 10:35:56 +02:00
2016-09-13 10:35:56 +02:00
2016-09-12 14:23:37 +02:00
2016-06-23 11:07:14 +02:00
2016-08-10 15:40:44 +02:00
2016-07-04 11:39:38 +02:00
2016-09-08 00:42:57 +02:00
2016-06-07 09:35:16 +02:00
2016-07-22 15:30:42 +02:00
2016-08-11 16:17:05 +02:00
2017-11-30 08:39:13 +00:00
2016-10-24 02:20:40 +02:00
2016-08-23 11:22:09 +02:00
2016-11-01 19:31:49 +01:00
2016-10-05 11:49:09 -07:00
2016-10-20 14:14:11 +02:00
2017-05-25 15:44:36 +02:00
2016-09-15 13:57:43 +02:00
2016-11-08 10:29:47 +01:00
2016-06-07 09:35:16 +02:00
2016-09-13 10:35:56 +02:00
2016-09-08 01:15:46 +02:00
2016-06-07 09:35:16 +02:00
2016-09-08 00:42:57 +02:00
2016-06-07 09:35:16 +02:00
2016-09-13 10:35:56 +02:00
2016-05-11 13:46:49 +02:00
2016-08-23 11:23:41 +02:00
2018-02-03 17:05:34 +01:00
2016-09-15 13:59:02 +02:00
2016-06-08 10:48:17 +02:00
2016-11-15 10:33:30 +01:00
2016-06-22 17:58:07 +02:00
2016-05-11 13:49:11 +02:00
2016-09-13 10:35:56 +02:00
2016-06-07 09:35:16 +02:00
2016-09-13 10:35:56 +02:00
2016-09-18 13:18:13 +02:00
2016-06-07 09:35:16 +02:00
2016-09-13 10:35:56 +02:00
2016-10-21 14:55:07 +02:00
2016-09-13 10:35:56 +02:00
2016-09-13 10:35:56 +02:00
2016-08-23 11:24:40 +02:00
2016-06-07 09:35:16 +02:00
2016-09-15 14:03:33 +02:00
2016-09-13 10:35:56 +02:00
2016-09-13 10:35:56 +02:00
2016-09-13 10:35:56 +02:00
2018-02-25 11:05:52 +01:00
2016-06-08 10:33:45 +02:00
2016-06-08 10:54:13 +02:00
2016-05-11 13:50:01 +02:00
2016-09-23 15:26:20 +02:00
2017-04-12 12:41:12 +02:00
2016-07-04 16:51:29 +02:00
2016-10-31 21:23:44 +01:00
2016-09-12 14:53:33 +02:00
2018-02-03 17:05:34 +01:00
2016-10-03 23:38:11 +02:00
2017-11-08 10:08:35 +01:00
2016-11-16 20:46:32 +01:00