mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
insmod qorvo uwb driver according to mmi_info
add driver probe according to mmi_info. Only probe uwb driver when mmi info is qorvo Change-Id: I92a9e01dca1c40a484de5845dd9137f834fa3a1f Signed-off-by: zhuangnk1 <zhuangnk1@lenovo.com> Reviewed-on: https://gerrit.mot.com/2794347 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tao Sun <suntao2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
ee730f8640
commit
d5f6f9388c
1 changed files with 8 additions and 0 deletions
|
|
@ -47,6 +47,7 @@
|
|||
#include <linux/ktime.h>
|
||||
#endif
|
||||
|
||||
#include <linux/mmi_device.h>
|
||||
#include <linux/uwb/qmrom.h>
|
||||
#include <linux/uwb/qmrom_spi.h>
|
||||
#include <linux/uwb/qmrom_log.h>
|
||||
|
|
@ -1008,6 +1009,13 @@ static int qm35_probe(struct spi_device *spi)
|
|||
struct clk *uwb_clk;
|
||||
int ret = 0;
|
||||
|
||||
if (spi->dev.of_node && !mmi_device_is_available(spi->dev.of_node)) {
|
||||
pr_err("%s : mmi: device not supported\n", __func__);
|
||||
return -ENODEV;
|
||||
} else {
|
||||
pr_err("%s : supported uwb device found\n", __func__);
|
||||
}
|
||||
|
||||
if (fwname) {
|
||||
qmrom_set_fwname(fwname);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue