[qca-nss-clients] bridge: Monitor bridge event only on supported platform

Change-Id: I6151f223ffa76f27ab7e20a1b4e8013f6fd94f1e
Signed-off-by: Stephen Wang <wstephen@codeaurora.org>
diff --git a/bridge/nss_bridge_mgr.c b/bridge/nss_bridge_mgr.c
index 27b4249..d8db48b 100644
--- a/bridge/nss_bridge_mgr.c
+++ b/bridge/nss_bridge_mgr.c
@@ -366,6 +366,12 @@
  */
 int __init nss_bridge_mgr_init_module(void)
 {
+	/*
+	 * Monitor bridge activity only on supported platform
+	 */
+	if (!of_machine_is_compatible("qcom,ipq807x"))
+		return 0;
+
 	memset(&bridge_pvt, 0, sizeof(bridge_pvt));
 	register_netdevice_notifier(&nss_bridge_mgr_netdevice_nb);
 	nss_bridge_mgr_info("Module (Build %s) loaded\n", NSS_CLIENT_BUILD_ID);