ath10k: fix compilation error with CONFIG_OF not available
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 19 Jul 2021 15:58:00 +0000 (17:58 +0200)
committerPetr Štetiar <ynezz@true.cz>
Mon, 19 Jul 2021 17:10:18 +0000 (19:10 +0200)
commit853e8465a7af2a13fa2ebf0354cce091ab63d44b
treeb2d7f6d1895b3d42671203afd1ac2689588b7788
parent32adbfc789f6113fa6a297de71d36df32fcb8324
ath10k: fix compilation error with CONFIG_OF not available

of_platform_device_create require CONFIG_OF selected.
Add an ifdef and register to the of platform only if of is available.

Fixes: 985954ccbd11 ("kernel: add ath10k support for of_get_mac_address")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
package/kernel/ath10k-ct/patches/203-ath10k-Try-to-get-mac-address-from-dts.patch
package/kernel/mac80211/patches/ath/984-ath10k-Try-to-get-mac-address-from-dts.patch