bcmdhd : Remove kernel_read dependency from 43752 driver

Removed VFS dependency.
BAM is unrequired feature for bcm43752, so remove BAM feature.
Also, place kernel_read under DHD_SUPPORT_VFS_CALL to avoid VFS dependency

Bug: 189131064
Test: Verified compile and confirmed kernel_read is gone away from the mod file

Signed-off-by: daniel oh <daniel.oh@broadcom.corp-partner.google.com>
Change-Id: I92ccfde997c1aead7a68cf3eae988e2a58c34d63
diff --git a/Kbuild b/Kbuild
index 02eeb01..6cbc8e7 100755
--- a/Kbuild
+++ b/Kbuild
@@ -395,8 +395,6 @@
 DHDCFLAGS += -DSUPPORT_PM2_ONLY
 DHDCFLAGS += -DSUPPORT_AMPDU_MPDU_CMD
 DHDCFLAGS += -DWLADPS_PRIVATE_CMD
-DHDCFLAGS += -DWL_BAM
-DHDCFLAGS += -DWL_BAM_FILE_PATH="\"/vendor/etc/wifi/\""
 DHDCFLAGS += -DWL_RELMCAST
 DHDCFLAGS += -DWL_SUPP_EVENT
 DHDCFLAGS += -DDISABLE_WL_FRAMEBURST_SOFTAP
@@ -828,7 +826,7 @@
 DHDOFILES += $(BCMINTERNAL_DHDOFILES)
 
 # customer4 extra Source files
-DHDOFILES += wl_roam.o wl_bam.o
+DHDOFILES += wl_roam.o
 #DHDOFILES += wl_roam.o dhd_pktlog.o bcm_app_utils.o wl_bigdata.o
 
 ifneq ($(filter -DDHD_PKT_LOGGING,$(DHDCFLAGS)),)
diff --git a/linux_osl.c b/linux_osl.c
index ebbd604..6925913 100755
--- a/linux_osl.c
+++ b/linux_osl.c
@@ -1206,7 +1206,11 @@
 int
 kernel_read_compat(struct file *file, loff_t offset, char *addr, unsigned long count)
 {
+#ifdef DHD_SUPPORT_VFS_CALL
 	return (int)kernel_read(file, addr, (size_t)count, &offset);
+#else
+	return 0;
+#endif /* DHD_SUPPORT_VFS_CALL */
 }
 #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0)) */