Skip to content

Commit 1993b17

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide
Pull IDE fixes from David Miller: "Just two small changes: 1) Remove bogus init annotation in icside, from Arnd Bergmann. 2) Don't use zero clock rates in palm_bk3710 driver, from Wolfram Sang" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide: ide: palm_bk3710: test clock rate to avoid division by 0 ide: icside: remove incorrect initconst annotation
2 parents d4dc3b2 + 0d7ef45 commit 1993b17

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/ide/icside.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ static int icside_register_v5(struct icside_state *state,
451451
return ret;
452452
}
453453

454-
static const struct ide_port_info icside_v6_port_info __initconst = {
454+
static const struct ide_port_info icside_v6_port_info = {
455455
.init_dma = icside_dma_off_init,
456456
.port_ops = &icside_v6_no_dma_port_ops,
457457
.host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_MMIO,

drivers/ide/palm_bk3710.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
325325

326326
clk_enable(clk);
327327
rate = clk_get_rate(clk);
328+
if (!rate)
329+
return -EINVAL;
328330

329331
/* NOTE: round *down* to meet minimum timings; we count in clocks */
330332
ideclk_period = 1000000000UL / rate;

0 commit comments

Comments
 (0)