net: qcom/emac: fix device tree initialization
authorTimur Tabi <timur@codeaurora.org>
Sun, 27 May 2018 01:29:14 +0000 (20:29 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 14:06:15 +0000 (10:06 -0400)
commitd377df784178bf5b0a39e75dc8b1ee86e1abb3f6
tree76f60d1648edc95ef4af47c356a6caaa60a4dba8
parentc3cd281e2bc8da18f225f1191e9751d771411933
net: qcom/emac: fix device tree initialization

Commit "net: qcom/emac: Encapsulate sgmii ops under one structure"
introduced the sgmii_ops structure, but did not correctly initialize
it on device tree platforms.  This resulted in compiler warnings when
ACPI is not enabled.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c