[qca-nss-drv]: Add proper semantics for inline function
The semantics for non-static functions declared inline have
changed in gcc5, Since nss_probe() and nss_remove() functions
are referenced from the nss_init.c file only, so it should be
declared as static inline.
* Fixed one typo mistake in nss_hal_pvt.c
Change-Id: I5d28574b1a80ca6f7d45876b2091424c3ff5b217
Signed-off-by: Ram Chandra Jangir <rjangi@codeaurora.org>
diff --git a/nss_init.c b/nss_init.c
index 9bfcc46..e6930a0 100644
--- a/nss_init.c
+++ b/nss_init.c
@@ -101,7 +101,7 @@
* nss_probe()
* HLOS device probe callback
*/
-inline int nss_probe(struct platform_device *nss_dev)
+static inline int nss_probe(struct platform_device *nss_dev)
{
return nss_hal_probe(nss_dev);
}
@@ -110,7 +110,7 @@
* nss_remove()
* HLOS device remove callback
*/
-inline int nss_remove(struct platform_device *nss_dev)
+static inline int nss_remove(struct platform_device *nss_dev)
{
return nss_hal_remove(nss_dev);
}