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

Commit 4a1c735a authored by Siva Kumar Akkireddi's avatar Siva Kumar Akkireddi
Browse files

msm: sps: Suppress bind/unbind attributes



SPS driver does not support manual bind/unbind operations
through sysfs. Suppress the bind/unbind nodes. Do not free
SPS struct in sps_device_de_init since it is being done in
sps_exit, and also to avoid use-after-free.

Change-Id: If6da6c5fb9d1a44d0420c6151f7f9d0a33cb2d04
Signed-off-by: default avatarSiva Kumar Akkireddi <sivaa@codeaurora.org>
parent 80aa2312
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
/* Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2018, 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
@@ -1020,8 +1020,6 @@ static void sps_device_de_init(void)
				"sps:%s:BAMs are still registered", __func__);

		sps_map_de_init();

		kfree(sps);
	}

	sps_mem_de_init();
@@ -3006,6 +3004,7 @@ static struct platform_driver msm_sps_driver = {
		.name	= SPS_DRV_NAME,
		.owner	= THIS_MODULE,
		.of_match_table = msm_sps_match,
		.suppress_bind_attrs = true,
	},
	.remove		= msm_sps_remove,
};