aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-08-19 19:23:03 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-19 19:23:03 -0400
commit8fdd36d44205cd6bccca26246ae84d7515d10015 (patch)
treed5165bf36a4ad8a669dfce18486aba37a74771cc
parent2ad0d52699700a91660a406a4046017a2d7f246a (diff)
parent58064e1f46b174e108c11323c2b1011064fd3efe (diff)
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
-rw-r--r--arch/m68k/coldfire/clk.c29
-rw-r--r--arch/m68k/include/asm/dma.h4
2 files changed, 31 insertions, 2 deletions
diff --git a/arch/m68k/coldfire/clk.c b/arch/m68k/coldfire/clk.c
index 849cd208e2ed..7bc666e482eb 100644
--- a/arch/m68k/coldfire/clk.c
+++ b/arch/m68k/coldfire/clk.c
@@ -129,4 +129,33 @@ unsigned long clk_get_rate(struct clk *clk)
129} 129}
130EXPORT_SYMBOL(clk_get_rate); 130EXPORT_SYMBOL(clk_get_rate);
131 131
132/* dummy functions, should not be called */
133long clk_round_rate(struct clk *clk, unsigned long rate)
134{
135 WARN_ON(clk);
136 return 0;
137}
138EXPORT_SYMBOL(clk_round_rate);
139
140int clk_set_rate(struct clk *clk, unsigned long rate)
141{
142 WARN_ON(clk);
143 return 0;
144}
145EXPORT_SYMBOL(clk_set_rate);
146
147int clk_set_parent(struct clk *clk, struct clk *parent)
148{
149 WARN_ON(clk);
150 return 0;
151}
152EXPORT_SYMBOL(clk_set_parent);
153
154struct clk *clk_get_parent(struct clk *clk)
155{
156 WARN_ON(clk);
157 return NULL;
158}
159EXPORT_SYMBOL(clk_get_parent);
160
132/***************************************************************************/ 161/***************************************************************************/
diff --git a/arch/m68k/include/asm/dma.h b/arch/m68k/include/asm/dma.h
index b0978a23bad1..ae2021964e32 100644
--- a/arch/m68k/include/asm/dma.h
+++ b/arch/m68k/include/asm/dma.h
@@ -390,7 +390,7 @@ static __inline__ void set_dma_mode(unsigned int dmanr, char mode)
390 390
391#ifdef DEBUG_DMA 391#ifdef DEBUG_DMA
392 printk("%s(%d): dmanr=%d DMR[%x]=%x DIR[%x]=%x\n", __FILE__, __LINE__, 392 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],
394 (int) &dmawp[MCFDMA_DIR], dmawp[MCFDMA_DIR]); 394 (int) &dmawp[MCFDMA_DIR], dmawp[MCFDMA_DIR]);
395#endif 395#endif
396} 396}
@@ -421,7 +421,7 @@ static __inline__ void set_dma_addr(unsigned int dmanr, unsigned int a)
421 421
422#ifdef DEBUG_DMA 422#ifdef DEBUG_DMA
423 printk("%s(%d): dmanr=%d DMR[%x]=%x SAR[%x]=%08x DAR[%x]=%08x\n", 423 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],
425 (int) &dmalp[MCFDMA_DSAR], dmalp[MCFDMA_DSAR], 425 (int) &dmalp[MCFDMA_DSAR], dmalp[MCFDMA_DSAR],
426 (int) &dmalp[MCFDMA_DDAR], dmalp[MCFDMA_DDAR]); 426 (int) &dmalp[MCFDMA_DDAR], dmalp[MCFDMA_DDAR]);
427#endif 427#endif