]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: don't try to claim clocks on ACPI systems
authorTimur Tabi <timur@codeaurora.org>
Tue, 13 Dec 2016 23:49:02 +0000 (17:49 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Dec 2016 15:22:14 +0000 (10:22 -0500)
commit02f155cfed277d4dba7a3a799d90694c1c14b70f
tree46c61dae87af390d6365c31339d507c6650815cd
parent773b80919e97b4fe6e819ebae50cf772784e1c8f
net: qcom/emac: don't try to claim clocks on ACPI systems

On ACPI systems, clocks are not available to drivers directly.  They are
handled exclusively by ACPI and/or firmware, so there is no clock driver.
Calls to clk_get() always fail, so we should not even attempt to claim
any clocks on ACPI systems.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac.c