kernel: rtl8366_smi: guard of_mdiobus_register() call
authorJo-Philipp Wich <jo@mein.io>
Fri, 11 May 2018 13:07:56 +0000 (15:07 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 11 May 2018 13:07:56 +0000 (15:07 +0200)
commitd8c7cd9cb15a51cbbf5dba9aab63da3addee9d87
treef777d447e754a84874f5ed6babdc454003be3bab
parentecd954d5302b2d135005ca68c206bb2d544b0bde
kernel: rtl8366_smi: guard of_mdiobus_register() call

Make the call to of_mdiobus_register() dependant on CONFIG_OF to avoid
pulling in an unwanted dependency on of_mdio.ko.

Fixes: 3dc523f232 kernel: add OF support to rtl8355 driver
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
target/linux/generic/files/drivers/net/phy/rtl8366_smi.c