summaryrefslogtreecommitdiff
path: root/core/pld/src/pld_snoc.c
diff options
context:
space:
mode:
authorManikandan Mohan <manikand@codeaurora.org>2017-09-20 18:14:16 -0700
committersnandini <snandini@codeaurora.org>2017-11-16 05:03:15 -0800
commit6eeaedd0b633f100593abc3e9e0c45b53e45ce00 (patch)
tree77f819f44253d2766747326fc367bda1407cb36c /core/pld/src/pld_snoc.c
parent654364e44758f8c95f39bdaf25d9a9c247bef973 (diff)
downloadqcacld-6eeaedd0b633f100593abc3e9e0c45b53e45ce00.tar.gz
qcacld-3.0: Fix compilation for multiple driver module generation
Qcacld supports multiple driver modules instance generation with different file names and Kbuild options. Fix driver load time and compilation errors on this feature. Change-Id: I78f6771d1a215ac8193bfd51eefc6d8c5a2594a6 CRs-fixed: 2142715
Diffstat (limited to 'core/pld/src/pld_snoc.c')
-rw-r--r--core/pld/src/pld_snoc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/pld/src/pld_snoc.c b/core/pld/src/pld_snoc.c
index 9e252f957e..dfe8434188 100644
--- a/core/pld/src/pld_snoc.c
+++ b/core/pld/src/pld_snoc.c
@@ -275,8 +275,14 @@ static int pld_snoc_uevent(struct device *dev,
return 0;
}
+#ifdef MULTI_IF_NAME
+#define PLD_SNOC_OPS_NAME "pld_snoc_" MULTI_IF_NAME
+#else
+#define PLD_SNOC_OPS_NAME "pld_snoc"
+#endif
+
struct icnss_driver_ops pld_snoc_ops = {
- .name = "pld_snoc",
+ .name = PLD_SNOC_OPS_NAME,
.probe = pld_snoc_probe,
.remove = pld_snoc_remove,
.shutdown = pld_snoc_shutdown,