From c66382f568c637f82b0c1a3440bfc1cecad82542 Mon Sep 17 00:00:00 2001 From: Tero Kristo Date: Thu, 14 May 2009 15:09:50 +0300 Subject: [PATCH] OMAP: PM: Fixed omap_pm_set_min_bus_tput Parameter check for this function was bugged. Applies on top of PM branch. Signed-off-by: Tero Kristo Signed-off-by: Jouni Hogander --- arch/arm/plat-omap/omap-pm-srf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/omap-pm-srf.c b/arch/arm/plat-omap/omap-pm-srf.c index 0e95a2c5158..20fdfa79a08 100644 --- a/arch/arm/plat-omap/omap-pm-srf.c +++ b/arch/arm/plat-omap/omap-pm-srf.c @@ -76,8 +76,8 @@ void omap_pm_set_max_mpu_wakeup_lat(struct device *dev, long t) void omap_pm_set_min_bus_tput(struct device *dev, u8 agent_id, unsigned long r) { - if (!dev || agent_id != OCP_INITIATOR_AGENT || - agent_id != OCP_TARGET_AGENT) { + if (!dev || (agent_id != OCP_INITIATOR_AGENT && + agent_id != OCP_TARGET_AGENT)) { WARN_ON(1); return; }; -- 2.11.4.GIT