summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c24xx
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-11-16 17:05:12 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-11-16 17:05:12 -0500
commit8c609698569578913ad40bb160b97c3f6cfa15ec (patch)
treea8a0a3b90ec9056a05f62a1c84970b5f34a3c139 /arch/arm/mach-s3c24xx
parent18c83d2c0390fd0e8336ad090a047c56037d19f5 (diff)
parentfa32475ad56d339178c9be12678906f2b39e3b47 (diff)
Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC platform updates from Arnd Bergmann: "Most of the commits are for defconfig changes, to enable newly added drivers or features that people have started using. For the changed lines lines, we have mostly cleanups, the affected platforms are OMAP, Versatile, EP93xx, Samsung, Broadcom, i.MX, and Actions. The largest single change is the introduction of the TI "sysc" bus driver, with the intention of cleaning up more legacy code. Two new SoC platforms get added this time: - Allwinner R40 is a modernized version of the A20 chip, now with a Quad-Core ARM Cortex-A7. According to the manufacturer, it is intended for "Smart Hardware" - Broadcom Hurricane 2 (Aka Strataconnect BCM5334X) is a family of chips meant for managed gigabit ethernet switches, based around a Cortex-A9 CPU. Finally, we gain SMP support for two platforms: Renesas R-Car E2 and Amlogic Meson8/8b, which were previously added but only supported uniprocessor operation" * tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (118 commits) ARM: multi_v7_defconfig: Select RPMSG_VIRTIO as module ARM: multi_v7_defconfig: enable CONFIG_GPIO_UNIPHIER arm64: defconfig: enable CONFIG_GPIO_UNIPHIER ARM: meson: enable MESON_IRQ_GPIO in Kconfig for meson8b ARM: meson: Add SMP bringup code for Meson8 and Meson8b ARM: smp_scu: allow the platform code to read the SCU CPU status ARM: smp_scu: add a helper for powering on a specific CPU dt-bindings: Amlogic: Add Meson8 and Meson8b SMP related documentation ARM: OMAP3: Delete an unnecessary variable initialisation in omap3xxx_hwmod_init() ARM: OMAP3: Use common error handling code in omap3xxx_hwmod_init() ARM: defconfig: select the right SX150X driver arm64: defconfig: Enable QCOM_IOMMU arm64: Add ThunderX drivers to defconfig arm64: defconfig: Enable Tegra PCI controller cpufreq: imx6q: Move speed grading check to cpufreq driver arm64: defconfig: re-enable Qualcomm DB410c USB ARM: configs: stm32: Add MDMA support in STM32 defconfig ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1 bus: ti-sysc: Fix unbalanced pm_runtime_enable by adding remove bus: ti-sysc: mark PM functions as __maybe_unused ...
Diffstat (limited to 'arch/arm/mach-s3c24xx')
-rw-r--r--arch/arm/mach-s3c24xx/iotiming-s3c2410.c8
-rw-r--r--arch/arm/mach-s3c24xx/iotiming-s3c2412.c8
2 files changed, 6 insertions, 10 deletions
diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c
index b7970f1fa3d5..d5f1f06e4811 100644
--- a/arch/arm/mach-s3c24xx/iotiming-s3c2410.c
+++ b/arch/arm/mach-s3c24xx/iotiming-s3c2410.c
@@ -206,7 +206,7 @@ static int calc_tacc(unsigned int cyc, int nwait_en,
206} 206}
207 207
208/** 208/**
209 * s3c2410_calc_bank - calculate bank timing infromation 209 * s3c2410_calc_bank - calculate bank timing information
210 * @cfg: The configuration we need to calculate for. 210 * @cfg: The configuration we need to calculate for.
211 * @bt: The bank timing information. 211 * @bt: The bank timing information.
212 * 212 *
@@ -453,11 +453,9 @@ int s3c2410_iotiming_get(struct s3c_cpufreq_config *cfg,
453 s3c_freq_iodbg("%s: bank %d: con %08lx\n", 453 s3c_freq_iodbg("%s: bank %d: con %08lx\n",
454 __func__, bank, bankcon); 454 __func__, bank, bankcon);
455 455
456 bt = kzalloc(sizeof(struct s3c2410_iobank_timing), GFP_KERNEL); 456 bt = kzalloc(sizeof(*bt), GFP_KERNEL);
457 if (!bt) { 457 if (!bt)
458 printk(KERN_ERR "%s: no memory for bank\n", __func__);
459 return -ENOMEM; 458 return -ENOMEM;
460 }
461 459
462 /* find out in nWait is enabled for bank. */ 460 /* find out in nWait is enabled for bank. */
463 461
diff --git a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c
index 28b13951de87..c5b12f6b02b5 100644
--- a/arch/arm/mach-s3c24xx/iotiming-s3c2412.c
+++ b/arch/arm/mach-s3c24xx/iotiming-s3c2412.c
@@ -35,7 +35,7 @@
35#define print_ns(x) ((x) / 10), ((x) % 10) 35#define print_ns(x) ((x) / 10), ((x) % 10)
36 36
37/** 37/**
38 * s3c2412_print_timing - print timing infromation via printk. 38 * s3c2412_print_timing - print timing information via printk.
39 * @pfx: The prefix to print each line with. 39 * @pfx: The prefix to print each line with.
40 * @iot: The IO timing information 40 * @iot: The IO timing information
41 */ 41 */
@@ -242,11 +242,9 @@ int s3c2412_iotiming_get(struct s3c_cpufreq_config *cfg,
242 if (!bank_is_io(bank, bankcfg)) 242 if (!bank_is_io(bank, bankcfg))
243 continue; 243 continue;
244 244
245 bt = kzalloc(sizeof(struct s3c2412_iobank_timing), GFP_KERNEL); 245 bt = kzalloc(sizeof(*bt), GFP_KERNEL);
246 if (!bt) { 246 if (!bt)
247 printk(KERN_ERR "%s: no memory for bank\n", __func__);
248 return -ENOMEM; 247 return -ENOMEM;
249 }
250 248
251 timings->bank[bank].io_2412 = bt; 249 timings->bank[bank].io_2412 = bt;
252 s3c2412_iotiming_getbank(cfg, bt, bank); 250 s3c2412_iotiming_getbank(cfg, bt, bank);