Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Linus Torvalds committed Mar 28, 2016
2 parents d4dc3b2 + 0d7ef45 commit 1993b17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/icside.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ static int icside_register_v5(struct icside_state *state,
return ret;
}

static const struct ide_port_info icside_v6_port_info __initconst = {
static const struct ide_port_info icside_v6_port_info = {
.init_dma = icside_dma_off_init,
.port_ops = &icside_v6_no_dma_port_ops,
.host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_MMIO,
Expand Down
2 changes: 2 additions & 0 deletions drivers/ide/palm_bk3710.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)

clk_enable(clk);
rate = clk_get_rate(clk);
if (!rate)
return -EINVAL;

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

0 comments on commit 1993b17

Please sign in to comment.