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

Commit 788cb1cb authored by Lingutla Chandrasekhar's avatar Lingutla Chandrasekhar Committed by Gerrit - the friendly Code Review server
Browse files

drivers: nfc: make nq-nci probe as async probe



Probe function calls sleep in hardware check, which
stalls kernel booting.

Make the probe as async function to optimize boot time.

Change-Id: Idbc679951ff7bd6fcfac4ba330452e29d78d86dd
Signed-off-by: default avatarLingutla Chandrasekhar <clingutla@codeaurora.org>
Signed-off-by: default avatarChintan Pandya <cpandya@codeaurora.org>
parent 11f2cc4d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-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
@@ -1213,6 +1213,7 @@ static struct i2c_driver nqx = {
		.owner = THIS_MODULE,
		.name = "nq-nci",
		.of_match_table = msm_match_table,
		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
		.pm = &nfc_pm_ops,
	},
};