diff --git a/drivers/amlogic/clk/axg/axg.h b/drivers/amlogic/clk/axg/axg.h index d36ffd8341e6..d00dd051f707 100644 --- a/drivers/amlogic/clk/axg/axg.h +++ b/drivers/amlogic/clk/axg/axg.h @@ -274,7 +274,7 @@ static const struct pll_rate_table axg_gp0_pll_rate_table[] = { }; static const struct pll_rate_table axg_pcie_pll_rate_table[] = { - PLL_FRAC_RATE(100000000, 66, 1, 1, 3, 683), + PLL_FRAC_RATE(100000000, 200, 3, 1, 3, 0), { /* sentinel */ }, }; #endif /* __AXG_H */ diff --git a/drivers/amlogic/pci/pcie-amlogic.c b/drivers/amlogic/pci/pcie-amlogic.c index e9907d4a5a8b..c8d6fbd8777a 100644 --- a/drivers/amlogic/pci/pcie-amlogic.c +++ b/drivers/amlogic/pci/pcie-amlogic.c @@ -725,7 +725,7 @@ static int __init amlogic_pcie_probe(struct platform_device *pdev) goto fail_pcie; } - if (clk_get_rate(amlogic_pcie->bus_clk) == rate) { + if (clk_get_rate(amlogic_pcie->bus_clk) != rate) { ret = -ENODEV; goto fail_pcie; }