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

Commit 856fcb6e authored by Prateek Sood's avatar Prateek Sood
Browse files

regulator: fix compilation when CONFIG_DEBUG_FS is disabled



Fix compilation error when CONFIG_DEBUG_FS is disabled in
bengal-perf_defconfig.

Change-Id: Id0f868912fa61f1d68281dff573d1cd5d9f23b30
Signed-off-by: default avatarPrateek Sood <prsood@codeaurora.org>
parent 2b71825e
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2012-2015, 2018-2019, The Linux Foundation. All rights reserved. */
/* Copyright (c) 2012-2015, 2018-2020, The Linux Foundation. All rights reserved. */


#define pr_fmt(fmt) "%s: " fmt, __func__
#define pr_fmt(fmt) "%s: " fmt, __func__


@@ -28,7 +28,10 @@ enum {
};
};


static int rpm_vreg_debug_mask;
static int rpm_vreg_debug_mask;

#ifdef CONFIG_DEBUG_FS
static bool is_debugfs_created;
static bool is_debugfs_created;
#endif


#define vreg_err(req, fmt, ...) \
#define vreg_err(req, fmt, ...) \
	pr_err("%s: " fmt, req->rdesc.name, ##__VA_ARGS__)
	pr_err("%s: " fmt, req->rdesc.name, ##__VA_ARGS__)
@@ -1661,6 +1664,7 @@ static int rpm_vreg_device_set_voltage_index(struct device *dev,
	return rc;
	return rc;
}
}


#ifdef CONFIG_DEBUG_FS
static void rpm_vreg_create_debugfs(struct rpm_regulator *reg)
static void rpm_vreg_create_debugfs(struct rpm_regulator *reg)
{
{
	struct dentry *entry;
	struct dentry *entry;
@@ -1682,6 +1686,7 @@ static void rpm_vreg_create_debugfs(struct rpm_regulator *reg)
		is_debugfs_created = true;
		is_debugfs_created = true;
	}
	}
}
}
#endif


/*
/*
 * This probe is called for child rpm-regulator devices which have
 * This probe is called for child rpm-regulator devices which have