diff options
author | Victor Chong <victor.chong@linaro.org> | 2019-04-15 18:17:35 +0100 |
---|---|---|
committer | Joakim Bech <joakim.bech@linaro.org> | 2019-04-16 21:28:59 +0700 |
commit | 47c0e86cde41b0ee1d673013d2be3041a4da04fd (patch) | |
tree | ea48bb15a65668df3a735356820bdba2f9eb47dc /core | |
parent | 074131b040453b81e9ad44d83804a876c9acbde8 (diff) |
pl022, pl061: add missing pager constraint on _ops struct
Add KEEP_PAGER() for pl022_ops and pl061_ops structs.
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/drivers/pl022_spi.c | 2 | ||||
-rw-r--r-- | core/drivers/pl061_gpio.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/core/drivers/pl022_spi.c b/core/drivers/pl022_spi.c index 33cef4be..7705acaf 100644 --- a/core/drivers/pl022_spi.c +++ b/core/drivers/pl022_spi.c @@ -8,6 +8,7 @@ #include <drivers/pl022_spi.h> #include <initcall.h> #include <io.h> +#include <keep.h> #include <kernel/panic.h> #include <kernel/tee_time.h> #include <platform_config.h> @@ -498,6 +499,7 @@ static const struct spi_ops pl022_ops = { .txrx16 = pl022_txrx16, .end = pl022_end, }; +KEEP_PAGER(pl022_ops); void pl022_init(struct pl022_data *pd) { diff --git a/core/drivers/pl061_gpio.c b/core/drivers/pl061_gpio.c index 95e9571a..e8b34c7a 100644 --- a/core/drivers/pl061_gpio.c +++ b/core/drivers/pl061_gpio.c @@ -6,6 +6,7 @@ #include <assert.h> #include <drivers/pl061_gpio.h> #include <io.h> +#include <keep.h> #include <trace.h> #include <util.h> @@ -164,6 +165,7 @@ static const struct gpio_ops pl061_ops = { .get_interrupt = pl061_get_interrupt, .set_interrupt = pl061_set_interrupt, }; +KEEP_PAGER(pl061_ops); /* * Initialize PL061 GPIO controller |