]> git.baikalelectronics.ru Git - kernel.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)
commitba4184dbd33482d9a1856b5c100a0e9d4617fc52
treefb4d3c61011d13589a47ce7038658d8c159d98aa
parent9d03f44231c01b2e5ee7cc8b0bea3a225b262c6a
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