Skip to content

Commit 049238d

Browse files
committed
Merge tag 'qcom-drivers-for-6.9-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux into soc/drivers
A few Qualcomm driver fixes for v6.9 This fixes a "defined but not used"-warning in SPM driver when kernel is built without regulator support, and corrects a couple of kernel-doc issues in aoss and geni-se drivers. * tag 'qcom-drivers-for-6.9-2' of https://git.kernel.org/pub/scm/linux/kernel/git/qcom/linux: soc: qcom: aoss: add missing kerneldoc for qmp members soc: qcom: geni-se: drop unused kerneldoc struct geni_wrapper param soc: qcom: spm: fix building with CONFIG_REGULATOR=n Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 469f6ac + 9f378a6 commit 049238d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

drivers/soc/qcom/qcom-geni-se.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
* @base: Base address of this instance of QUP wrapper core
9090
* @clks: Handle to the primary & optional secondary AHB clocks
9191
* @num_clks: Count of clocks
92-
* @to_core: Core ICC path
9392
*/
9493
struct geni_wrapper {
9594
struct device *dev;

drivers/soc/qcom/qcom_aoss.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ struct qmp_cooling_device {
7171
* @tx_lock: provides synchronization between multiple callers of qmp_send()
7272
* @qdss_clk: QDSS clock hw struct
7373
* @cooling_devs: thermal cooling devices
74+
* @debugfs_root: directory for the developer/tester interface
75+
* @debugfs_files: array of individual debugfs entries under debugfs_root
7476
*/
7577
struct qmp {
7678
void __iomem *msgram;

drivers/soc/qcom/spm.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ static int spm_get_cpu(struct device *dev)
411411
return -EOPNOTSUPP;
412412
}
413413

414-
#ifdef CONFIG_REGULATOR
415414
static int spm_register_regulator(struct device *dev, struct spm_driver_data *drv)
416415
{
417416
struct regulator_config config = {
@@ -474,12 +473,6 @@ static int spm_register_regulator(struct device *dev, struct spm_driver_data *dr
474473

475474
return 0;
476475
}
477-
#else
478-
static int spm_register_regulator(struct device *dev, struct spm_driver_data *drv)
479-
{
480-
return 0;
481-
}
482-
#endif
483476

484477
static const struct of_device_id spm_match_table[] = {
485478
{ .compatible = "qcom,sdm660-gold-saw2-v4.1-l2",
@@ -559,7 +552,10 @@ static int spm_dev_probe(struct platform_device *pdev)
559552
if (drv->reg_data->reg_offset[SPM_REG_SPM_CTL])
560553
spm_set_low_power_mode(drv, PM_SLEEP_MODE_STBY);
561554

562-
return spm_register_regulator(&pdev->dev, drv);
555+
if (IS_ENABLED(CONFIG_REGULATOR))
556+
return spm_register_regulator(&pdev->dev, drv);
557+
558+
return 0;
563559
}
564560

565561
static struct platform_driver spm_driver = {

0 commit comments

Comments
 (0)