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

Commit 9c9b4b00 authored by Rama Krishna Phani A's avatar Rama Krishna Phani A Committed by Sahitya Tummala
Browse files

msm: sps: Fix incompatible type assignment



The virt_addr in struct sps_bam_props is the virtual address
corresponding to ioremap memory. Hence, it must be of
type void __iomem *virt_addr. Change type of virtual
address in all required places.

Change-Id: I73e33e50e86a9b3f98a6e422b8561dae0e8a1e1e
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent 88c3522c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2088,7 +2088,7 @@ int sps_register_bam_device(const struct sps_bam_props *bam_props,
				unsigned long *dev_handle)
{
	struct sps_bam *bam = NULL;
	void *virt_addr = NULL;
	void __iomem *virt_addr = NULL;
	char bam_name[MAX_MSG_LEN];
	u32 manage;
	int ok;
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2017, 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
@@ -202,7 +202,7 @@ struct sps_bam {
	/* BAM device state */
	u32 state;
	struct mutex lock;
	void *base; /* BAM virtual base address */
	void __iomem *base; /* BAM virtual base address */
	u32 version;
	spinlock_t isr_lock;
	spinlock_t connection_lock;
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2011-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-2017, 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
@@ -430,7 +430,7 @@ struct sps_bam_props {

	u32 options;
	phys_addr_t phys_addr;
	void *virt_addr;
	void __iomem *virt_addr;
	u32 virt_size;
	u32 irq;
	u32 num_pipes;