summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy.green@linaro.org>2012-06-07 20:57:45 +0800
committerAndy Green <andy.green@linaro.org>2012-06-22 10:33:04 +0800
commitd75072c05c93da329675f330a26efe523b88f68d (patch)
tree8106cb827cef23f28ccd3504b755bca611c04ab5
parentf8ba563d39a3fed966d257c468fe4acedf68517b (diff)
clean remove all warnings from build
Signed-off-by: Andy Green <andy.green@linaro.org>
-rw-r--r--arch/arm/common/gic.c1
-rw-r--r--arch/arm/mach-omap2/board-omap5evm.c5
-rw-r--r--arch/arm/mach-omap2/devices.c10
-rw-r--r--arch/arm/mach-omap2/dma.c4
-rw-r--r--arch/arm/mach-omap2/drm.c2
-rw-r--r--arch/arm/mach-omap2/dvfs.c3
-rw-r--r--arch/arm/mach-omap2/emif_omap.c2
-rw-r--r--arch/arm/mach-omap2/io.c13
-rw-r--r--arch/arm/mach-omap2/mux.c2
-rw-r--r--arch/arm/mach-omap2/mux.h2
-rw-r--r--arch/arm/mach-omap2/omap-sar.c2
-rw-r--r--arch/arm/mach-omap2/omap-wakeupgen.c3
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_54xx_data.c6
-rw-r--r--arch/arm/mach-omap2/pm.c3
-rw-r--r--arch/arm/mach-omap2/pm44xx.c18
-rw-r--r--arch/arm/mach-omap2/scm_device.c2
-rw-r--r--arch/arm/mach-omap2/smartreflex.c2
-rw-r--r--arch/arm/mach-omap2/usb-host.c4
-rw-r--r--arch/arm/mach-omap2/usb-musb.c2
-rw-r--r--arch/arm/plat-omap/i2c.c2
-rw-r--r--arch/arm/plat-omap/include/plat/i2c.h2
-rw-r--r--arch/arm/plat-omap/include/plat/mcbsp.h2
-rw-r--r--drivers/misc/emif.c4
-rw-r--r--drivers/mmc/card/block.c3
-rw-r--r--drivers/mmc/host/omap_hsmmc.c2
-rw-r--r--drivers/rtc/rtc-twl.c1
-rw-r--r--drivers/video/omap2/dss/dispc.c2
-rw-r--r--drivers/video/omap2/dss/overlay.c3
-rw-r--r--drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c2
-rw-r--r--net/ipv4/tcp.c2
-rw-r--r--net/rpmsg/rpmsg_proto.c6
-rw-r--r--sound/soc/omap/Kconfig4
-rw-r--r--sound/soc/omap/abe/abe_port.c8
-rw-r--r--sound/soc/omap/mcbsp.c5
-rw-r--r--sound/soc/omap/omap-mcbsp.c4
35 files changed, 75 insertions, 63 deletions
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
index 77eac7509884..3edc1f04c526 100644
--- a/arch/arm/common/gic.c
+++ b/arch/arm/common/gic.c
@@ -69,7 +69,6 @@ struct gic_chip_data {
static DEFINE_RAW_SPINLOCK(irq_controller_lock);
/* Address of GIC 0 CPU interface */
-static void __iomem *gic_cpu_base_addr __read_mostly;
#ifdef CONFIG_ARM_ERRATA_4668
static inline void gic_writel_relaxed(unsigned int v,
diff --git a/arch/arm/mach-omap2/board-omap5evm.c b/arch/arm/mach-omap2/board-omap5evm.c
index 6174b4b832cc..830c25a97b9f 100644
--- a/arch/arm/mach-omap2/board-omap5evm.c
+++ b/arch/arm/mach-omap2/board-omap5evm.c
@@ -895,7 +895,7 @@ static struct i2c_board_info __initdata omap5evm_i2c_1_boardinfo[] = {
};
-
+#if 0
static struct qtm_touch_keyarray_cfg omap5evm_key_array_data[] = {
{
.ctrl = 0,
@@ -1103,6 +1103,7 @@ static struct i2c_board_info __initdata omap5evm_i2c_4_boardinfo[] = {
.irq = OMAP_GPIO_IRQ(OMAP5_TOUCH_IRQ_1),
},
};
+#endif
/*
* I2C GPIO Expander - TCA6424
@@ -1196,6 +1197,7 @@ static struct omap2_hsmmc_info mmc[] = {
{} /* Terminator */
};
+#ifdef CONFIG_WL12XX_PLATFORM_DATA
static struct regulator_consumer_supply omap5_sdp5430_vmmc3_supply[] = {
REGULATOR_SUPPLY("vmmc", "omap_hsmmc.2"),
};
@@ -1265,6 +1267,7 @@ static void omap5_sdp5430_wifi_init(void)
platform_device_register(&omap_vwlan_device);
}
+#endif
/* USBB3 to SMSC LAN9730 */
#define GPIO_ETH_NRESET_SEVM 172
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
index dbab73ad0bd0..a7b35d8c06d4 100644
--- a/arch/arm/mach-omap2/devices.c
+++ b/arch/arm/mach-omap2/devices.c
@@ -59,11 +59,11 @@ static const char * const *mac_device_fixup_paths;
int count_mac_device_fixup_paths;
/* macro for building platform_device for McBSP ports */
-#define OMAP_MCBSP_PLATFORM_DEVICE(port_nr) \
-static struct platform_device omap_mcbsp##port_nr = { \
- .name = "omap-mcbsp-dai", \
- .id = port_nr - 1, \
-}
+#define OMAP_MCBSP_PLATFORM_DEVICE(port_nr) \
+static struct platform_device omap_mcbsp##port_nr = { \
+ .name = "omap-mcbsp-dai", \
+ .id = port_nr - 1, \
+}
OMAP_MCBSP_PLATFORM_DEVICE(1);
OMAP_MCBSP_PLATFORM_DEVICE(2);
diff --git a/arch/arm/mach-omap2/dma.c b/arch/arm/mach-omap2/dma.c
index eb2b5de79c0d..6898c4838761 100644
--- a/arch/arm/mach-omap2/dma.c
+++ b/arch/arm/mach-omap2/dma.c
@@ -115,7 +115,7 @@ u32 omap_context_registers[] = {
CNDP,
CCDN
};
-
+#if 0
static struct omap_device_pm_latency omap2_dma_latency[] = {
{
.deactivate_func = omap_device_idle_hwmods,
@@ -123,7 +123,7 @@ static struct omap_device_pm_latency omap2_dma_latency[] = {
.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
},
};
-
+#endif
static void __iomem *dma_base;
static inline void dma_write(u32 val, int reg, int lch)
{
diff --git a/arch/arm/mach-omap2/drm.c b/arch/arm/mach-omap2/drm.c
index 779ae02f4b18..4ab7b6a1d58f 100644
--- a/arch/arm/mach-omap2/drm.c
+++ b/arch/arm/mach-omap2/drm.c
@@ -66,7 +66,7 @@ static int __init omap_init_drm(void)
arch_initcall(omap_init_drm);
-void omapdrm_reserve_vram(void)
+void __init omapdrm_reserve_vram(void)
{
#ifdef CONFIG_CMA
/*
diff --git a/arch/arm/mach-omap2/dvfs.c b/arch/arm/mach-omap2/dvfs.c
index 6e60bc8d26ab..8b8a801c1980 100644
--- a/arch/arm/mach-omap2/dvfs.c
+++ b/arch/arm/mach-omap2/dvfs.c
@@ -702,8 +702,7 @@ int omap_device_scale(struct device *req_dev, struct device *target_dev,
return -EINVAL;
}
- // !!! incompatible pointer type
- od = container_of(p_dev, struct omap_device, pdev);
+ od = to_omap_device(p_dev);
if (IS_ERR_OR_NULL(od)) {
pr_err("%s: od is null!\n", __func__);
return -EINVAL;
diff --git a/arch/arm/mach-omap2/emif_omap.c b/arch/arm/mach-omap2/emif_omap.c
index 6ca5e8f56733..9351e576ac50 100644
--- a/arch/arm/mach-omap2/emif_omap.c
+++ b/arch/arm/mach-omap2/emif_omap.c
@@ -105,6 +105,7 @@ error:
return;
}
+#if 0
/*
* Reconfigure EMIF timing registers to known values by doing a setrate
* at the current frequency that will in turn invoke EMIF driver APIs
@@ -129,3 +130,4 @@ error:
pr_err("init_emif_timings failed\n");
return -1;
}
+#endif
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 222b555318e1..ebfeb5e76e95 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -327,19 +327,6 @@ static struct map_desc omap54xx_io_desc[] __initdata = {
},
};
#endif
-static void __init _omap2_map_common_io(void)
-{
- /* Normally devicemaps_init() would flush caches and tlb after
- * mdesc->map_io(), but we must also do it here because of the CPU
- * revision check below.
- * AG Now moved by Jassi's patch to be earlier... leaving this in
- */
- local_flush_tlb_all();
- flush_cache_all();
-
- omap2xxx_check_revision();
- omap_sram_init();
-}
#ifdef CONFIG_SOC_OMAP2420
void __init omap242x_map_common_io(void)
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index 3fb351aefff7..0ae85153e2b2 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -262,7 +262,7 @@ int __init omap_mux_init_signal(const char *muxname, int val)
return 0;
}
-int omap_mux_init_array(struct omap_mux_setting *muxarray, int count)
+int __init omap_mux_init_array(struct omap_mux_setting *muxarray, int count)
{
int r;
diff --git a/arch/arm/mach-omap2/mux.h b/arch/arm/mach-omap2/mux.h
index 86be2347a366..d13bdddb6995 100644
--- a/arch/arm/mach-omap2/mux.h
+++ b/arch/arm/mach-omap2/mux.h
@@ -220,7 +220,7 @@ int omap_mux_init_signal(const char *muxname, int val);
* @muxarray: pointer to list of omap_mux_setting
* @count: number of entries in @muxarry
*/
-int omap_mux_init_array(struct omap_mux_setting *muxarray, int count);
+int __init omap_mux_init_array(struct omap_mux_setting *muxarray, int count);
/**
* omap_hwmod_mux_init - initialize hwmod specific mux data
diff --git a/arch/arm/mach-omap2/omap-sar.c b/arch/arm/mach-omap2/omap-sar.c
index 3ba02ef762f3..be04bf564348 100644
--- a/arch/arm/mach-omap2/omap-sar.c
+++ b/arch/arm/mach-omap2/omap-sar.c
@@ -536,7 +536,7 @@ static struct sar_module omap54xx_sar_modules[] = {
*/
static int __init omap_sar_ram_init(void)
{
- void *base;
+ unsigned long base;
pr_info("omap_sar_ram_init\n");
/*
diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c
index 073eb8f52b1a..87e018b11b1f 100644
--- a/arch/arm/mach-omap2/omap-wakeupgen.c
+++ b/arch/arm/mach-omap2/omap-wakeupgen.c
@@ -54,9 +54,6 @@
#define SPI_TARGET_OFFSET 0x20
#define SPI_CONFIG_OFFSET 0x20
-/* Variables to store maximum spi(Shared Peripheral Interrupts) registers. */
-static u32 max_spi_irq, max_spi_reg;
-
static void __iomem *wakeupgen_base;
static void __iomem *sar_base;
static DEFINE_PER_CPU(u32 [MAX_NR_BANKS], irqmasks);
diff --git a/arch/arm/mach-omap2/omap_hwmod_54xx_data.c b/arch/arm/mach-omap2/omap_hwmod_54xx_data.c
index 54b004223156..34bab6bfbc5c 100644
--- a/arch/arm/mach-omap2/omap_hwmod_54xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_54xx_data.c
@@ -3733,10 +3733,12 @@ static struct omap_hwmod_ocp_if *omap54xx_mcbsp1_slaves[] = {
&omap54xx_l4_abe__mcbsp1_dma,
};
+#if 0 /* unreferenced */
static struct omap_hwmod_opt_clk mcbsp1_opt_clks[] = {
{ .role = "pad_fck", .clk = "pad_clks" },
{ .role = "prcm_fck", .clk = "mcbsp1_sync_mux_ck" },
};
+#endif
static struct omap_hwmod omap54xx_mcbsp1_hwmod = {
.name = "mcbsp1",
@@ -3813,10 +3815,12 @@ static struct omap_hwmod_ocp_if *omap54xx_mcbsp2_slaves[] = {
&omap54xx_l4_abe__mcbsp2_dma,
};
+#if 0 /* unreferenced */
static struct omap_hwmod_opt_clk mcbsp2_opt_clks[] = {
{ .role = "pad_fck", .clk = "pad_clks" },
{ .role = "prcm_fck", .clk = "mcbsp2_sync_mux_ck" },
};
+#endif
static struct omap_hwmod omap54xx_mcbsp2_hwmod = {
.name = "mcbsp2",
@@ -3893,10 +3897,12 @@ static struct omap_hwmod_ocp_if *omap54xx_mcbsp3_slaves[] = {
&omap54xx_l4_abe__mcbsp3_dma,
};
+#if 0 /* unreferenced */
static struct omap_hwmod_opt_clk mcbsp3_opt_clks[] = {
{ .role = "pad_fck", .clk = "pad_clks" },
{ .role = "prcm_fck", .clk = "mcbsp3_sync_mux_ck" },
};
+#endif
static struct omap_hwmod omap54xx_mcbsp3_hwmod = {
.name = "mcbsp3",
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index 14b24544334e..4bec568518b3 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -40,7 +40,6 @@
#include "prm2xxx_3xxx.h"
#include "prm44xx.h"
-static struct omap_device_pm_latency *pm_lats;
static void (*io_chain_trigger_func) (void);
static DEFINE_SPINLOCK(io_chain_lock);
@@ -473,7 +472,7 @@ static int omap2_dev_pm_qos_handler(struct notifier_block *nb,
// !!! says incompatible pointer type?
/* Find the associated omap_device for dev */
- od = container_of(p_dev, struct omap_device, pdev);
+ od = to_omap_device(p_dev);
/* Find the primary omap_hwmod for dev */
oh = od->hwmods[0];
diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c
index f36badea822e..c1d221e991c9 100644
--- a/arch/arm/mach-omap2/pm44xx.c
+++ b/arch/arm/mach-omap2/pm44xx.c
@@ -276,6 +276,23 @@ static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused)
return omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state);
}
+#if 0
+/*
+ * Enable hardware supervised mode for all clockdomains if it's
+ * supported. Initiate sleep transition for other clockdomains, if
+ * they are not used
+ */
+static int __init clkdms_setup(struct clockdomain *clkdm, void *unused)
+{
+ if (clkdm->flags & CLKDM_CAN_ENABLE_AUTO)
+ clkdm_allow_idle(clkdm);
+ else if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP &&
+ atomic_read(&clkdm->usecount) == 0)
+ clkdm_sleep(clkdm);
+ return 0;
+}
+#endif
+
void omap4_pm_off_mode_enable(int enable)
{
u32 next_state = PWRDM_POWER_RET;
@@ -523,7 +540,6 @@ static void __init prcm_setup_regs(void)
static int __init omap_pm_init(void)
{
int ret, i;
- struct voltagedomain *mpu_voltdm;
#ifdef CONFIG_SUSPEND
struct power_state *pwrst;
#endif
diff --git a/arch/arm/mach-omap2/scm_device.c b/arch/arm/mach-omap2/scm_device.c
index 5ead057ae144..11135a515c80 100644
--- a/arch/arm/mach-omap2/scm_device.c
+++ b/arch/arm/mach-omap2/scm_device.c
@@ -31,7 +31,7 @@
static DEFINE_IDR(scm_device_idr);
-static int scm_dev_init(struct omap_hwmod *oh, void *user)
+static int __init scm_dev_init(struct omap_hwmod *oh, void *user)
{
struct omap4plus_scm_pdata *scm_pdata;
struct platform_device *pd;
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index ed267f0c6e56..40885a149dba 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -1125,7 +1125,7 @@ static int __init omap_sr_probe(struct platform_device *pdev)
struct omap_sr_data *pdata = pdev->dev.platform_data;
struct resource *mem, *irq;
struct dentry *nvalue_dir;
- struct dentry *lvt_nvalue_dir;
+ struct dentry *lvt_nvalue_dir = NULL;
struct omap_volt_data *volt_data;
int i, ret = 0;
char *name;
diff --git a/arch/arm/mach-omap2/usb-host.c b/arch/arm/mach-omap2/usb-host.c
index 2b7a9e91656c..550392e55e8a 100644
--- a/arch/arm/mach-omap2/usb-host.c
+++ b/arch/arm/mach-omap2/usb-host.c
@@ -634,7 +634,7 @@ static void __init setup_ehci_io_mux(const enum usbhs_omap_port_mode *port_mode)
static struct omap_hwmod_mux_info * __init
setup_4430ehci_io_mux(const enum usbhs_omap_port_mode *port_mode)
{
- struct omap_device_pad *pads;
+ struct omap_device_pad *pads = NULL;
int pads_cnt = 0;
switch (port_mode[0]) {
@@ -786,7 +786,7 @@ static void __init setup_ohci_io_mux(const enum usbhs_omap_port_mode *port_mode)
static struct omap_hwmod_mux_info * __init
setup_4430ohci_io_mux(const enum usbhs_omap_port_mode *port_mode)
{
- struct omap_device_pad *pads;
+ struct omap_device_pad *pads = NULL;
int pads_cnt = 0;
switch (port_mode[0]) {
diff --git a/arch/arm/mach-omap2/usb-musb.c b/arch/arm/mach-omap2/usb-musb.c
index c3f7a1f2b0ad..fd7b3b7a123d 100644
--- a/arch/arm/mach-omap2/usb-musb.c
+++ b/arch/arm/mach-omap2/usb-musb.c
@@ -60,6 +60,7 @@ static struct musb_hdrc_platform_data musb_plat = {
static u64 musb_dmamask = DMA_BIT_MASK(32);
+#if 0
static struct omap_device_pm_latency omap_musb_latency[] = {
{
.deactivate_func = omap_device_idle_hwmods,
@@ -67,6 +68,7 @@ static struct omap_device_pm_latency omap_musb_latency[] = {
.flags = OMAP_DEVICE_LATENCY_AUTO_ADJUST,
},
};
+#endif
static struct omap_musb_board_data musb_default_board_data = {
.interface_type = MUSB_INTERFACE_ULPI,
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c
index 0928b41885f2..e12b5bc914ef 100644
--- a/arch/arm/plat-omap/i2c.c
+++ b/arch/arm/plat-omap/i2c.c
@@ -298,7 +298,7 @@ int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
* @bus_id: bus id counting from number 1
* @pdata: pointer to the I2C bus board data
*/
-void omap_register_i2c_bus_board_data(int bus_id,
+void __init omap_register_i2c_bus_board_data(int bus_id,
struct omap_i2c_bus_board_data *pdata)
{
BUG_ON(bus_id < 1 || bus_id > omap_i2c_nr_ports());
diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h
index 55ae3bd7a843..71943756f763 100644
--- a/arch/arm/plat-omap/include/plat/i2c.h
+++ b/arch/arm/plat-omap/include/plat/i2c.h
@@ -36,7 +36,7 @@ struct omap_i2c_bus_board_data {
* @bus_id: bus id counting from number 1
* @pdata: pointer to the I2C bus board data
*/
-void omap_register_i2c_bus_board_data(int bus_id,
+void __init omap_register_i2c_bus_board_data(int bus_id,
struct omap_i2c_bus_board_data *pdata);
/**
diff --git a/arch/arm/plat-omap/include/plat/mcbsp.h b/arch/arm/plat-omap/include/plat/mcbsp.h
index 76bc054d755e..b775043e0637 100644
--- a/arch/arm/plat-omap/include/plat/mcbsp.h
+++ b/arch/arm/plat-omap/include/plat/mcbsp.h
@@ -63,7 +63,7 @@ struct omap_mcbsp_dev_attr {
extern int omap_mcbsp_count;
-int omap_mcbsp_init(void);
+//int omap_mcbsp_init(void);
#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4) || \
defined(CONFIG_ARCH_OMAP5)
diff --git a/drivers/misc/emif.c b/drivers/misc/emif.c
index 228e2a41773d..acd226de96f2 100644
--- a/drivers/misc/emif.c
+++ b/drivers/misc/emif.c
@@ -169,7 +169,7 @@ static const struct file_operations emif_mr4_fops = {
.release = single_release,
};
-static int __init emif_debugfs_init(struct emif_data *emif)
+static int __devinit emif_debugfs_init(struct emif_data *emif)
{
struct dentry *dentry;
int ret;
@@ -951,7 +951,7 @@ static void clear_all_interrupts(struct emif_data *emif)
base + EMIF_LL_OCP_INTERRUPT_STATUS);
}
-static int __init setup_interrupts(struct emif_data *emif)
+static int __devinit setup_interrupts(struct emif_data *emif)
{
u32 interrupts, type;
void __iomem *base = emif->base;
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 54c83224698e..22d228913cf6 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -1405,9 +1405,6 @@ static int mmc_blk_issue_rw_rq(struct mmc_queue *mq, struct request *rqc)
return 0;
}
-static int
-mmc_blk_set_blksize(struct mmc_blk_data *md, struct mmc_card *card);
-
static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
{
int ret;
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 9e656bd9820f..aaad72a726d9 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -310,6 +310,7 @@ static int omap_hsmmc_1_set_power(struct device *dev, int slot, int power_on,
return ret;
}
+#if 0
static int omap_hsmmc_235_set_power(struct device *dev, int slot, int power_on,
int vdd)
{
@@ -372,6 +373,7 @@ static int omap_hsmmc_235_set_power(struct device *dev, int slot, int power_on,
return ret;
}
+#endif
static int omap_hsmmc_reg_get(struct omap_hsmmc_host *host)
{
diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c
index b3cd305bef1b..15ccde5945a1 100644
--- a/drivers/rtc/rtc-twl.c
+++ b/drivers/rtc/rtc-twl.c
@@ -398,7 +398,6 @@ out:
static irqreturn_t twl_rtc_interrupt(int irq, void *rtc)
{
- struct twl_rtc_device *twl_rtc = rtc;
unsigned long events = 0;
int ret = IRQ_NONE;
int res;
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c
index 104156f3fdfc..36eae36f5abd 100644
--- a/drivers/video/omap2/dss/dispc.c
+++ b/drivers/video/omap2/dss/dispc.c
@@ -1047,7 +1047,7 @@ void dispc_ovl_set_fifo_threshold(enum omap_plane plane, u32 low, u32 high)
if (dss_has_feature(FEAT_PRELOAD)) {
/* might as well set it to be the same high ..*/
- dispc_write_reg(DISPC_OVL_PRELOAD(plane), min(high, 0xfff));
+ dispc_write_reg(DISPC_OVL_PRELOAD(plane), min((u32)high, (u32)0xfff));
}
}
diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c
index ce04c11b9aa9..985c8c1887f7 100644
--- a/drivers/video/omap2/dss/overlay.c
+++ b/drivers/video/omap2/dss/overlay.c
@@ -635,7 +635,8 @@ int dss_ovl_simple_check(struct omap_overlay *ovl,
}
if ((info->burst_type != OMAP_DSS_BURST_INC) && !cpu_is_omap44xx()) {
- DSSERR("check_overlay: invalid burst_type\n", info->burst_type);
+ DSSERR("check_overlay: invalid burst_type %d\n",
+ info->burst_type);
return -EINVAL;
}
diff --git a/drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c b/drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c
index 2438a248d120..6e4c3f5fa6f8 100644
--- a/drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c
+++ b/drivers/video/omap2/dss/ti_hdmi_5xxx_ip.c
@@ -246,7 +246,7 @@ static int hdmi_core_ddc_edid(struct hdmi_ip_data *ip_data,
int ti_hdmi_5xxx_read_edid(struct hdmi_ip_data *ip_data,
u8 *edid, int len)
{
- int r, l;
+ int r;
if (len < 128)
return -EINVAL;
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index cf54e10b2587..7d711149fe5c 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -3371,7 +3371,7 @@ int tcp_nuke_addr(struct net *net, struct sockaddr *addr)
struct in_addr *in;
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
- struct in6_addr *in6;
+ struct in6_addr *in6 = NULL;
#endif
if (family == AF_INET) {
in = &((struct sockaddr_in *)addr)->sin_addr;
diff --git a/net/rpmsg/rpmsg_proto.c b/net/rpmsg/rpmsg_proto.c
index e060663d68c9..2091b9109938 100644
--- a/net/rpmsg/rpmsg_proto.c
+++ b/net/rpmsg/rpmsg_proto.c
@@ -546,7 +546,7 @@ static struct rpmsg_device_id rpmsg_proto_id_table[] = {
};
MODULE_DEVICE_TABLE(rpmsg, rpmsg_proto_id_table);
-static struct rpmsg_driver rpmsg_proto_drv = {
+static struct rpmsg_driver rpmsg_proto_driver = {
.drv.name = KBUILD_MODNAME,
.drv.owner = THIS_MODULE,
.id_table = rpmsg_proto_id_table,
@@ -572,7 +572,7 @@ static int __init rpmsg_proto_init(void)
}
/* gimme rpmsg channels to expose ! */
- ret = register_rpmsg_driver(&rpmsg_proto_drv);
+ ret = register_rpmsg_driver(&rpmsg_proto_driver);
if (ret) {
pr_err("register_rpmsg_driver failed: %d\n", ret);
goto sock_unreg;
@@ -589,7 +589,7 @@ proto_unreg:
static void __exit rpmsg_proto_exit(void)
{
- unregister_rpmsg_driver(&rpmsg_proto_drv);
+ unregister_rpmsg_driver(&rpmsg_proto_driver);
sock_unregister(PF_RPMSG);
proto_unregister(&rpmsg_proto);
}
diff --git a/sound/soc/omap/Kconfig b/sound/soc/omap/Kconfig
index 310ecc3500aa..eb16973396b8 100644
--- a/sound/soc/omap/Kconfig
+++ b/sound/soc/omap/Kconfig
@@ -101,10 +101,10 @@ config SND_OMAP_SOC_SDP3430
config SND_OMAP_SOC_OMAP_ABE_TWL6040
tristate "SoC Audio support for OMAP boards using ABE and twl6040 codec"
depends on SND_OMAP_SOC && (ARCH_OMAP4 || ARCH_OMAP5)
-# select SND_OMAP_SOC_DMIC
+ select SND_OMAP_SOC_DMIC
select SND_OMAP_SOC_MCPDM
select SND_SOC_TWL6040
-# select SND_SOC_DMIC
+ select SND_SOC_DMIC
select SND_OMAP_SOC_MCBSP
select SND_OMAP_SOC_ABE
select SND_DYNAMIC_MINORS
diff --git a/sound/soc/omap/abe/abe_port.c b/sound/soc/omap/abe/abe_port.c
index d7f2e9becbc5..391abdc84b37 100644
--- a/sound/soc/omap/abe/abe_port.c
+++ b/sound/soc/omap/abe/abe_port.c
@@ -658,7 +658,9 @@ int omap_aess_enable_data_transfer(struct omap_aess *abe, u32 id)
omap_aess_clean_temporary_buffers(abe, id);
- omap_aess_update_scheduling_table1(abe, &(abe_port_init[id].task), 1);
+ // !!! we are casting away the const from the task struct !!!
+ omap_aess_update_scheduling_table1(abe, (struct omap_aess_init_task1 *)
+ &(abe_port_init[id].task), 1);
switch (id) {
case OMAP_ABE_PDM_UL_PORT:
@@ -1137,7 +1139,7 @@ void omap_aess_init_io_tasks(struct omap_aess *abe, u32 id, struct omap_aess_dat
*/
switch (id) {
case OMAP_ABE_VX_DL_PORT:
- omap_aess_update_scheduling_table1(abe, &(abe_port_init[id].task), 1);
+ omap_aess_update_scheduling_table1(abe, (struct omap_aess_init_task1 *)&(abe_port_init[id].task), 1);
/* check for 8kHz/16kHz */
if (abe_port[id].format.f == 8000) {
@@ -1194,7 +1196,7 @@ void omap_aess_init_io_tasks(struct omap_aess *abe, u32 id, struct omap_aess_dat
}
break;
case OMAP_ABE_VX_UL_PORT:
- omap_aess_update_scheduling_table1(abe, &(abe_port_init[id].task), 1);
+ omap_aess_update_scheduling_table1(abe, (struct omap_aess_init_task1 *)&(abe_port_init[id].task), 1);
/* check for 8kHz/16kHz */
if (abe_port[id].format.f == 8000) {
smem1 = omap_aess_update_io_task(abe, aess_enable_vx_ul_8k_asrc.task, 1);
diff --git a/sound/soc/omap/mcbsp.c b/sound/soc/omap/mcbsp.c
index c4aaf03a4291..f759461b3927 100644
--- a/sound/soc/omap/mcbsp.c
+++ b/sound/soc/omap/mcbsp.c
@@ -270,9 +270,10 @@ static int omap_mcbsp_dma_reg_params(struct omap_mcbsp *mcbsp,
defined(CONFIG_ARCH_OMAP5)
static struct omap_device *find_omap_device_by_dev(struct device *dev)
{
- struct platform_device *pdev = container_of(dev,
+ struct platform_device *pdev =
+ (struct platform_device *)container_of(dev,
struct platform_device, dev);
- return container_of(pdev, struct omap_device, pdev);
+ return to_omap_device(pdev);
}
#endif
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 8934230eb53e..5c936d8a5701 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -625,7 +625,7 @@ static struct snd_soc_dai_driver omap_mcbsp_dai = {
},
.ops = &mcbsp_dai_ops,
};
-
+#if 0
static int omap_mcbsp_st_info_volsw(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
@@ -640,7 +640,7 @@ static int omap_mcbsp_st_info_volsw(struct snd_kcontrol *kcontrol,
uinfo->value.integer.max = max;
return 0;
}
-
+#endif
#define OMAP_MCBSP_ST_SET_CHANNEL_VOLUME(channel) \
static int \
omap_mcbsp_set_st_ch##channel##_volume(struct snd_kcontrol *kc, \