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

Commit ec82f6fd authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: service-locator: add enable module parameter"

parents 3ab4b572 5c615df8
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -44,6 +44,9 @@
static u32 locator_status = LOCATOR_UNKNOWN;
static bool service_inited;

int enable = 0;
module_param(enable, int, 0);

DECLARE_COMPLETION(locator_status_known);

static void service_locator_svc_arrive(struct work_struct *work);
@@ -506,6 +509,9 @@ static struct dentry *test_servloc_file;

static int __init service_locator_init(void)
{
	if (!enable)
		locator_status = LOCATOR_NOT_PRESENT;

	class_register(&service_locator_class);
	test_servloc_file = debugfs_create_file("test_servloc",
				S_IRUGO | S_IWUSR, NULL, NULL,