]> git.karo-electronics.de Git - linux-beck.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)
commit026acd5f47340382844f0af73516cf7ae6cdc876
tree46c61dae87af390d6365c31339d507c6650815cd
parentb822ee6c5e5ba1f695fc514a65849cdd87618bd3
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