From e375b8e7c0f0bcca117a11ad1e6c41492213ea0c Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Date: Thu, 9 Feb 2012 12:42:37 +0530 Subject: [PATCH] qup_i2c: Remove Soc specific check while enabling CORE_ON_EN bit Enabling of CORE_ON_EN bit in qup_i2c driver is not dependent on soc. Same code will work for all. Hence remove the SOC specific part from the function. CRs-Fixed: 335884 Change-Id: I55054b0c17e1710c1d268322f1a78c42c94b3db8 Signed-off-by: Pankaj Kumar --- drivers/i2c/busses/i2c-qup.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index 9f2e3bdc951..c8b470721ae 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -33,7 +33,6 @@ #include #include #include -#include MODULE_LICENSE("GPL v2"); MODULE_VERSION("0.2"); @@ -307,20 +306,12 @@ qup_update_state(struct qup_i2c_dev *dev, uint32_t state) /* * Before calling qup_config_core_on_en(), please make * sure that QuPE core is in RESET state. - * - * Configuration of CORE_ON_EN - BIT13 in QUP_CONFIG register - * is only required for targets like 7x27a, where it needs - * be turned on for disabling the QuPE pclks. */ static void qup_config_core_on_en(struct qup_i2c_dev *dev) { uint32_t status; - if (!(cpu_is_msm7x27a() || cpu_is_msm7x27aa() || - cpu_is_msm7x25a() || cpu_is_msm7x25aa())) - return; - status = readl_relaxed(dev->base + QUP_CONFIG); status |= BIT(13); writel_relaxed(status, dev->base + QUP_CONFIG);