Skip to content

Commit 8fdd36d

Browse files
committed
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu updates from Greg Ungerer: "Only two changes. One cleans up warnings in the ColdFire DMA code, the other stubs out (with warnings) ColdFire clock api functions not normally used" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68knommu: Fix typos in Coldfire 5272 DMA debug code m68k: coldfire: Normalize clk API
2 parents 2ad0d52 + 58064e1 commit 8fdd36d

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

arch/m68k/coldfire/clk.c

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,33 @@ unsigned long clk_get_rate(struct clk *clk)
129129
}
130130
EXPORT_SYMBOL(clk_get_rate);
131131

132+
/* dummy functions, should not be called */
133+
long clk_round_rate(struct clk *clk, unsigned long rate)
134+
{
135+
WARN_ON(clk);
136+
return 0;
137+
}
138+
EXPORT_SYMBOL(clk_round_rate);
139+
140+
int clk_set_rate(struct clk *clk, unsigned long rate)
141+
{
142+
WARN_ON(clk);
143+
return 0;
144+
}
145+
EXPORT_SYMBOL(clk_set_rate);
146+
147+
int clk_set_parent(struct clk *clk, struct clk *parent)
148+
{
149+
WARN_ON(clk);
150+
return 0;
151+
}
152+
EXPORT_SYMBOL(clk_set_parent);
153+
154+
struct clk *clk_get_parent(struct clk *clk)
155+
{
156+
WARN_ON(clk);
157+
return NULL;
158+
}
159+
EXPORT_SYMBOL(clk_get_parent);
160+
132161
/***************************************************************************/

arch/m68k/include/asm/dma.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
390390

391391
#ifdef DEBUG_DMA
392392
printk("%s(%d): dmanr=%d DMR[%x]=%x DIR[%x]=%x\n", __FILE__, __LINE__,
393-
dmanr, (int) &dmalp[MCFDMA_DMR], dmabp[MCFDMA_DMR],
393+
dmanr, (int) &dmalp[MCFDMA_DMR], dmalp[MCFDMA_DMR],
394394
(int) &dmawp[MCFDMA_DIR], dmawp[MCFDMA_DIR]);
395395
#endif
396396
}
@@ -421,7 +421,7 @@ static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
421421

422422
#ifdef DEBUG_DMA
423423
printk("%s(%d): dmanr=%d DMR[%x]=%x SAR[%x]=%08x DAR[%x]=%08x\n",
424-
__FILE__, __LINE__, dmanr, (int) &dmawp[MCFDMA_DMR], dmawp[MCFDMA_DMR],
424+
__FILE__, __LINE__, dmanr, (int) &dmalp[MCFDMA_DMR], dmalp[MCFDMA_DMR],
425425
(int) &dmalp[MCFDMA_DSAR], dmalp[MCFDMA_DSAR],
426426
(int) &dmalp[MCFDMA_DDAR], dmalp[MCFDMA_DDAR]);
427427
#endif

0 commit comments

Comments
 (0)