Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37ebb5d1 authored by Suresh Kumar Allam's avatar Suresh Kumar Allam
Browse files

bluetooth: Add check for CONFIG_CNSS_PCI



cnss_get_platform_cap() is only defined for CNSS PCI in
cnss driver, hence modify condition to resolve compilation
issue for non PCI based products.

Change-Id: I5443e4a86d75ae4ed8a7238403c70b0cf913fb1b
Signed-off-by: default avatarSivasri Kumar Vanka <sivasri@codeaurora.org>
Signed-off-by: default avatarSuresh Kumar Allam <allamsuresh@codeaurora.org>
parent 1e8f2043
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
#include <linux/regulator/consumer.h>
#include <linux/clk.h>

#if defined(CONFIG_CNSS) && !defined(CONFIG_ICNSS)
#if defined(CONFIG_CNSS_PCI)
#include <net/cnss.h>
#endif

@@ -339,7 +339,7 @@ static const struct rfkill_ops bluetooth_power_rfkill_ops = {
	.set_block = bluetooth_toggle_radio,
};

#if defined(CONFIG_CNSS) && !defined(CONFIG_ICNSS)
#if defined(CONFIG_CNSS_PCI)
static ssize_t enable_extldo(struct device *dev, struct device_attribute *attr,
			char *buf)
{