diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-02-24 10:51:00 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-02-24 10:51:00 +0000 |
commit | 23cbd4e84f98b36c91d19990760207112f142c5b (patch) | |
tree | 7baf767c58c70c54cee75311f0b73a196c234354 /arch/arm/mach-tegra | |
parent | f863440d54fccbcd0ef0f6d96d81521e0fa41e35 (diff) | |
download | op-kernel-dev-23cbd4e84f98b36c91d19990760207112f142c5b.zip op-kernel-dev-23cbd4e84f98b36c91d19990760207112f142c5b.tar.gz |
ARM: cleanup: clk_get_sys() error handling
Fix clk_get_sys() error handling; IS_ERR() should be used rather than
IS_ERR_OR_NULL() to check for errors.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/tegra2_emc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra2_emc.c b/arch/arm/mach-tegra/tegra2_emc.c index e18aa2f..03e742f 100644 --- a/arch/arm/mach-tegra/tegra2_emc.c +++ b/arch/arm/mach-tegra/tegra2_emc.c @@ -276,7 +276,7 @@ static struct tegra_emc_pdata *tegra_emc_fill_pdata(struct platform_device *pdev int i; WARN_ON(pdev->dev.platform_data); - BUG_ON(IS_ERR_OR_NULL(c)); + BUG_ON(IS_ERR(c)); pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); pdata->tables = devm_kzalloc(&pdev->dev, sizeof(*pdata->tables), |