diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-28 15:17:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-28 15:17:02 -0500 |
commit | 1993b176a8224e371e0732ffada7ab9eb3b0912b (patch) | |
tree | f437ed0a2f21386edee1886e8e6fd2f8f230c094 /drivers | |
parent | d4dc3b24427f91f112b18562dac73f7af60b7a21 (diff) | |
parent | 0d7ef45cdeebcc95d581703f45f6de7b2ee89b8d (diff) | |
download | op-kernel-dev-1993b176a8224e371e0732ffada7ab9eb3b0912b.zip op-kernel-dev-1993b176a8224e371e0732ffada7ab9eb3b0912b.tar.gz |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/icside.c | 2 | ||||
-rw-r--r-- | drivers/ide/palm_bk3710.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ide/icside.c b/drivers/ide/icside.c index 9f0a48e..80e933b 100644 --- a/drivers/ide/icside.c +++ b/drivers/ide/icside.c @@ -451,7 +451,7 @@ err_free: 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, diff --git a/drivers/ide/palm_bk3710.c b/drivers/ide/palm_bk3710.c index 8012e43..46427ea 100644 --- a/drivers/ide/palm_bk3710.c +++ b/drivers/ide/palm_bk3710.c @@ -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; |