Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226468
b: refs/heads/master
c: c451278
h: refs/heads/master
v: v3
  • Loading branch information
Tony Lindgren committed Dec 9, 2010
1 parent f9bf7d6 commit d5e261c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5403187f83c12c6f4c03547e0cc05bac0310be7b
refs/heads/master: c451278c2864e253a4bb303b596a29edc3bb527c
4 changes: 0 additions & 4 deletions trunk/arch/arm/mach-omap2/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ config MACH_DEVKIT8000
depends on ARCH_OMAP3
default y
select OMAP_PACKAGE_CUS
select OMAP_MUX

config MACH_OMAP_LDP
bool "OMAP3 LDP board"
Expand Down Expand Up @@ -250,14 +249,12 @@ config MACH_CM_T35
depends on ARCH_OMAP3
default y
select OMAP_PACKAGE_CUS
select OMAP_MUX

config MACH_CM_T3517
bool "CompuLab CM-T3517 module"
depends on ARCH_OMAP3
default y
select OMAP_PACKAGE_CBB
select OMAP_MUX

config MACH_IGEP0020
bool "IGEP v2 board"
Expand All @@ -276,7 +273,6 @@ config MACH_SBC3530
depends on ARCH_OMAP3
default y
select OMAP_PACKAGE_CUS
select OMAP_MUX

config MACH_OMAP_3630SDP
bool "OMAP3630 SDP board"
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,6 +1318,10 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
if (bank->method == METHOD_GPIO_44XX)
isr_reg = bank->base + OMAP4_GPIO_IRQSTATUS0;
#endif

if (WARN_ON(!isr_reg))
goto exit;

while(1) {
u32 isr_saved, level_mask = 0;
u32 enabled;
Expand Down Expand Up @@ -1377,6 +1381,7 @@ static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
configured, we must unmask the bank interrupt only after
handler(s) are executed in order to avoid spurious bank
interrupt */
exit:
if (!unmasked)
desc->chip->unmask(irq);

Expand Down
12 changes: 12 additions & 0 deletions trunk/arch/arm/plat-omap/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,15 @@ static inline int omap1_i2c_add_bus(int bus_id)
{
struct platform_device *pdev;
struct omap_i2c_bus_platform_data *pdata;
struct resource *res;

omap1_i2c_mux_pins(bus_id);

pdev = &omap_i2c_devices[bus_id - 1];
res = pdev->resource;
res[0].start = OMAP1_I2C_BASE;
res[0].end = res[0].start + OMAP_I2C_SIZE;
res[1].start = INT_I2C;
pdata = &i2c_pdata[bus_id - 1];

return platform_device_register(pdev);
Expand All @@ -125,6 +130,7 @@ static struct omap_device_pm_latency omap_i2c_latency[] = {
},
};

#ifdef CONFIG_ARCH_OMAP2PLUS
static inline int omap2_i2c_add_bus(int bus_id)
{
int l;
Expand Down Expand Up @@ -161,6 +167,12 @@ static inline int omap2_i2c_add_bus(int bus_id)

return PTR_ERR(od);
}
#else
static inline int omap2_i2c_add_bus(int bus_id)
{
return 0;
}
#endif

static int __init omap_i2c_add_bus(int bus_id)
{
Expand Down
16 changes: 5 additions & 11 deletions trunk/arch/arm/plat-omap/mcbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ int omap_mcbsp_request(unsigned int id)
goto err_kfree;
}

mcbsp->free = 0;
mcbsp->free = false;
mcbsp->reg_cache = reg_cache;
spin_unlock(&mcbsp->lock);

Expand Down Expand Up @@ -815,7 +815,7 @@ int omap_mcbsp_request(unsigned int id)
clk_disable(mcbsp->iclk);

spin_lock(&mcbsp->lock);
mcbsp->free = 1;
mcbsp->free = true;
mcbsp->reg_cache = NULL;
err_kfree:
spin_unlock(&mcbsp->lock);
Expand Down Expand Up @@ -858,7 +858,7 @@ void omap_mcbsp_free(unsigned int id)
if (mcbsp->free)
dev_err(mcbsp->dev, "McBSP%d was not reserved\n", mcbsp->id);
else
mcbsp->free = 1;
mcbsp->free = true;
mcbsp->reg_cache = NULL;
spin_unlock(&mcbsp->lock);

Expand Down Expand Up @@ -1771,7 +1771,7 @@ static int __devinit omap_mcbsp_probe(struct platform_device *pdev)

spin_lock_init(&mcbsp->lock);
mcbsp->id = id + 1;
mcbsp->free = 1;
mcbsp->free = true;
mcbsp->dma_tx_lch = -1;
mcbsp->dma_rx_lch = -1;

Expand Down Expand Up @@ -1836,17 +1836,11 @@ static int __devexit omap_mcbsp_remove(struct platform_device *pdev)

omap34xx_device_exit(mcbsp);

clk_disable(mcbsp->fclk);
clk_disable(mcbsp->iclk);
clk_put(mcbsp->fclk);
clk_put(mcbsp->iclk);

iounmap(mcbsp->io_base);

mcbsp->fclk = NULL;
mcbsp->iclk = NULL;
mcbsp->free = 0;
mcbsp->dev = NULL;
kfree(mcbsp);
}

return 0;
Expand Down

0 comments on commit d5e261c

Please sign in to comment.