]> asedeno.scripts.mit.edu Git - linux.git/commit
drivers: net: xgene: Fix crash on DT systems
authorAlban Bedel <alban.bedel@avionic-design.de>
Tue, 28 Feb 2017 17:08:55 +0000 (18:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Mar 2017 20:47:23 +0000 (12:47 -0800)
commit9aea7779b764a11e357d3c74af6aee3cf90f2045
treefb4d3c61011d13589a47ce7038658d8c159d98aa
parente3330039ea28dc199e3b2da993895ff742a91adf
drivers: net: xgene: Fix crash on DT systems

On DT systems the driver require a clock, but the probe just print a
warning and continue, leading to a crash when resetting the device.
To fix this crash and properly handle probe deferals only ignore the
missing clock if DT isn't used or if the clock doesn't exist.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Acked-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c