Skip to content

Commit d4c3179

Browse files
committed
Merge tag 'omap-for-v6.12/soc-signed' of https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap into soc/arm
ARM: OMAP1/2: misc SoC updates for v6.12 * tag 'omap-for-v6.12/soc-signed' of https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-omap: ARM: OMAP1: Remove unused declarations in arch/arm/mach-omap1/pm.h ARM: omap2: Switch to use kmemdup_array() ARM: omap1: Remove unused struct 'dma_link_info' Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 773df3e + 1934b0c commit d4c3179

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

arch/arm/mach-omap1/omap-dma.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,6 @@ static struct omap_dma_dev_attr *d;
5959
static int enable_1510_mode;
6060
static u32 errata;
6161

62-
struct dma_link_info {
63-
int *linked_dmach_q;
64-
int no_of_lchs_linked;
65-
66-
int q_count;
67-
int q_tail;
68-
int q_head;
69-
70-
int chain_state;
71-
int chain_mode;
72-
73-
};
74-
7562
static int dma_lch_count;
7663
static int dma_chan_count;
7764
static int omap_dma_reserve_channels;

arch/arm/mach-omap1/pm.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,9 @@ extern void omap1_pm_suspend(void);
114114

115115
extern void omap1510_cpu_suspend(unsigned long, unsigned long);
116116
extern void omap1610_cpu_suspend(unsigned long, unsigned long);
117-
extern void omap1510_idle_loop_suspend(void);
118-
extern void omap1610_idle_loop_suspend(void);
119117

120118
extern unsigned int omap1510_cpu_suspend_sz;
121119
extern unsigned int omap1610_cpu_suspend_sz;
122-
extern unsigned int omap1510_idle_loop_suspend_sz;
123-
extern unsigned int omap1610_idle_loop_suspend_sz;
124120

125121
#ifdef CONFIG_OMAP_SERIAL_WAKE
126122
extern void omap_serial_wake_trigger(int enable);

arch/arm/mach-omap2/omap_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static struct omap_device *omap_device_alloc(struct platform_device *pdev,
315315

316316
od->hwmods_cnt = oh_cnt;
317317

318-
hwmods = kmemdup(ohs, sizeof(struct omap_hwmod *) * oh_cnt, GFP_KERNEL);
318+
hwmods = kmemdup_array(ohs, oh_cnt, sizeof(*hwmods), GFP_KERNEL);
319319
if (!hwmods)
320320
goto oda_exit2;
321321

0 commit comments

Comments
 (0)