aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/mcbsp.c
diff options
context:
space:
mode:
authorShubhrajyoti D <shubhrajyoti@ti.com>2010-12-07 19:25:41 -0500
committerTony Lindgren <tony@atomide.com>2010-12-07 19:25:41 -0500
commit6722a7238d062b747fc03b35d3371b935bcc965d (patch)
tree15865a45f444f3fcd24203261b2150ee396ee6ff /arch/arm/plat-omap/mcbsp.c
parent5f3b7284cb35c9e3eead279cb35f017b9735bb43 (diff)
omap: McBSP: Make the free variable update more readable
Using true/false instead of 1/0 to update the free variable. Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Acked-by: Jarkko Nikula <jhnikula@gmail.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/mcbsp.c')
-rw-r--r--arch/arm/plat-omap/mcbsp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c
index f79090cb823b..fdecd339d4f8 100644
--- a/arch/arm/plat-omap/mcbsp.c
+++ b/arch/arm/plat-omap/mcbsp.c
@@ -755,7 +755,7 @@ int omap_mcbsp_request(unsigned int id)
755 goto err_kfree; 755 goto err_kfree;
756 } 756 }
757 757
758 mcbsp->free = 0; 758 mcbsp->free = false;
759 mcbsp->reg_cache = reg_cache; 759 mcbsp->reg_cache = reg_cache;
760 spin_unlock(&mcbsp->lock); 760 spin_unlock(&mcbsp->lock);
761 761
@@ -815,7 +815,7 @@ err_clk_disable:
815 clk_disable(mcbsp->iclk); 815 clk_disable(mcbsp->iclk);
816 816
817 spin_lock(&mcbsp->lock); 817 spin_lock(&mcbsp->lock);
818 mcbsp->free = 1; 818 mcbsp->free = true;
819 mcbsp->reg_cache = NULL; 819 mcbsp->reg_cache = NULL;
820err_kfree: 820err_kfree:
821 spin_unlock(&mcbsp->lock); 821 spin_unlock(&mcbsp->lock);
@@ -858,7 +858,7 @@ void omap_mcbsp_free(unsigned int id)
858 if (mcbsp->free) 858 if (mcbsp->free)
859 dev_err(mcbsp->dev, "McBSP%d was not reserved\n", mcbsp->id); 859 dev_err(mcbsp->dev, "McBSP%d was not reserved\n", mcbsp->id);
860 else 860 else
861 mcbsp->free = 1; 861 mcbsp->free = true;
862 mcbsp->reg_cache = NULL; 862 mcbsp->reg_cache = NULL;
863 spin_unlock(&mcbsp->lock); 863 spin_unlock(&mcbsp->lock);
864 864
@@ -1771,7 +1771,7 @@ static int __devinit omap_mcbsp_probe(struct platform_device *pdev)
1771 1771
1772 spin_lock_init(&mcbsp->lock); 1772 spin_lock_init(&mcbsp->lock);
1773 mcbsp->id = id + 1; 1773 mcbsp->id = id + 1;
1774 mcbsp->free = 1; 1774 mcbsp->free = true;
1775 mcbsp->dma_tx_lch = -1; 1775 mcbsp->dma_tx_lch = -1;
1776 mcbsp->dma_rx_lch = -1; 1776 mcbsp->dma_rx_lch = -1;
1777 1777