diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-07-14 09:26:44 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2016-07-14 09:26:44 -0400 |
commit | f8c6d88b2c874295f49b9ad1ca0826b9a8ef3180 (patch) | |
tree | 6ba625358c04f8aa9d747a60416eed2b366ccee1 | |
parent | f1844aca29025bb436bfc4f872456b832632df56 (diff) | |
parent | aec6341e2ac76ea8703642e83535f216b8866162 (diff) |
Merge tag 'samsung-drivers-4.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into next/drivers
Merge "Samsung drivers/soc update for v4.8, part 3" into next/drivers:
1. Fix size of allocation for Exynos SROM registers (too much was allocated).
2. Constify fix.
* tag 'samsung-drivers-4.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux:
soc: samsung: pmu: Constify arrays with PMU data
memory: samsung: exynos-srom: Fix wrong count of registers
-rw-r--r-- | drivers/memory/samsung/exynos-srom.c | 2 | ||||
-rw-r--r-- | drivers/soc/samsung/exynos3250-pmu.c | 2 | ||||
-rw-r--r-- | drivers/soc/samsung/exynos5420-pmu.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/memory/samsung/exynos-srom.c b/drivers/memory/samsung/exynos-srom.c index 067f53324901..bf827a666694 100644 --- a/drivers/memory/samsung/exynos-srom.c +++ b/drivers/memory/samsung/exynos-srom.c | |||
@@ -134,7 +134,7 @@ static int exynos_srom_probe(struct platform_device *pdev) | |||
134 | platform_set_drvdata(pdev, srom); | 134 | platform_set_drvdata(pdev, srom); |
135 | 135 | ||
136 | srom->reg_offset = exynos_srom_alloc_reg_dump(exynos_srom_offsets, | 136 | srom->reg_offset = exynos_srom_alloc_reg_dump(exynos_srom_offsets, |
137 | sizeof(exynos_srom_offsets)); | 137 | ARRAY_SIZE(exynos_srom_offsets)); |
138 | if (!srom->reg_offset) { | 138 | if (!srom->reg_offset) { |
139 | iounmap(srom->reg_base); | 139 | iounmap(srom->reg_base); |
140 | return -ENOMEM; | 140 | return -ENOMEM; |
diff --git a/drivers/soc/samsung/exynos3250-pmu.c b/drivers/soc/samsung/exynos3250-pmu.c index 20b3ab8aa790..af2f54e14b83 100644 --- a/drivers/soc/samsung/exynos3250-pmu.c +++ b/drivers/soc/samsung/exynos3250-pmu.c | |||
@@ -14,7 +14,7 @@ | |||
14 | 14 | ||
15 | #include "exynos-pmu.h" | 15 | #include "exynos-pmu.h" |
16 | 16 | ||
17 | static struct exynos_pmu_conf exynos3250_pmu_config[] = { | 17 | static const struct exynos_pmu_conf exynos3250_pmu_config[] = { |
18 | /* { .offset = offset, .val = { AFTR, W-AFTR, SLEEP } */ | 18 | /* { .offset = offset, .val = { AFTR, W-AFTR, SLEEP } */ |
19 | { EXYNOS3_ARM_CORE0_SYS_PWR_REG, { 0x0, 0x0, 0x2} }, | 19 | { EXYNOS3_ARM_CORE0_SYS_PWR_REG, { 0x0, 0x0, 0x2} }, |
20 | { EXYNOS3_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, | 20 | { EXYNOS3_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, |
diff --git a/drivers/soc/samsung/exynos5420-pmu.c b/drivers/soc/samsung/exynos5420-pmu.c index b962fb6a5d22..3f2c64180ef8 100644 --- a/drivers/soc/samsung/exynos5420-pmu.c +++ b/drivers/soc/samsung/exynos5420-pmu.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | #include "exynos-pmu.h" | 18 | #include "exynos-pmu.h" |
19 | 19 | ||
20 | static struct exynos_pmu_conf exynos5420_pmu_config[] = { | 20 | static const struct exynos_pmu_conf exynos5420_pmu_config[] = { |
21 | /* { .offset = offset, .val = { AFTR, LPA, SLEEP } */ | 21 | /* { .offset = offset, .val = { AFTR, LPA, SLEEP } */ |
22 | { EXYNOS5_ARM_CORE0_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, | 22 | { EXYNOS5_ARM_CORE0_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, |
23 | { EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, | 23 | { EXYNOS5_DIS_IRQ_ARM_CORE0_LOCAL_SYS_PWR_REG, { 0x0, 0x0, 0x0} }, |