Skip to content

Commit 64414e5

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 removes unused code, the other makes local clock code arguments consistent with generic clock code" * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68knommu: remove dead code m68k: allow NULL clock for clk_get_rate
2 parents e90937e + 8a19434 commit 64414e5

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

arch/m68k/coldfire/clk.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ EXPORT_SYMBOL(clk_put);
121121

122122
unsigned long clk_get_rate(struct clk *clk)
123123
{
124+
if (!clk)
125+
return 0;
126+
124127
return clk->rate;
125128
}
126129
EXPORT_SYMBOL(clk_get_rate);

arch/m68k/coldfire/m5441x.c

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -222,40 +222,3 @@ void __init config_BSP(char *commandp, int size)
222222
m5441x_uarts_init();
223223
m5441x_fec_init();
224224
}
225-
226-
227-
#if IS_ENABLED(CONFIG_RTC_DRV_M5441x)
228-
static struct resource m5441x_rtc_resources[] = {
229-
{
230-
.start = MCFRTC_BASE,
231-
.end = MCFRTC_BASE + MCFRTC_SIZE - 1,
232-
.flags = IORESOURCE_MEM,
233-
},
234-
{
235-
.start = MCF_IRQ_RTC,
236-
.end = MCF_IRQ_RTC,
237-
.flags = IORESOURCE_IRQ,
238-
},
239-
};
240-
241-
static struct platform_device m5441x_rtc = {
242-
.name = "mcfrtc",
243-
.id = 0,
244-
.resource = m5441x_rtc_resources,
245-
.num_resources = ARRAY_SIZE(m5441x_rtc_resources),
246-
};
247-
#endif
248-
249-
static struct platform_device *m5441x_devices[] __initdata = {
250-
#if IS_ENABLED(CONFIG_RTC_DRV_M5441x)
251-
&m5441x_rtc,
252-
#endif
253-
};
254-
255-
static int __init init_BSP(void)
256-
{
257-
platform_add_devices(m5441x_devices, ARRAY_SIZE(m5441x_devices));
258-
return 0;
259-
}
260-
261-
arch_initcall(init_BSP);

0 commit comments

Comments
 (0)