mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 18:30:54 +07:00
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
This commit is contained in:
commit
1993b176a8
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user