From patchwork Fri Sep 14 04:37:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 11408 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C7D2023E54 for ; Fri, 14 Sep 2012 04:40:46 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id C4147A2FD27 for ; Fri, 14 Sep 2012 04:40:45 +0000 (UTC) Received: by iafj25 with SMTP id j25so2678907iaf.11 for ; Thu, 13 Sep 2012 21:40:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=c373urD9YI4UFTQFw9tlMP0+vpVybzMFQaJ8luZeuqo=; b=ng14sdsObVMTzGSnNPNbnzeqSWet6x0lJ2HZIqx9P5/7GAK7eANIHRqDSx/3CMoWqD 8APxWH8JesptoYAJj5mTXeytmVUIqzwptheGo9f2/4jQYK2hF2ofXkZ++qQA93edcB7P OVBV9+xlcAMfz+ucH5l4i8P4+EB+oKr1cUjYOk6H2YIQ8LchlCTplgWzq4GKV6b2Q+LV UiOhAFseUV8cFY4wDtgHhqigLKjSwSmHFFkBSWbsBQ7rkMwBFDFr426OPgQ3VIkmStpJ M4Yoc6o92n6Q50FVRvRsQy0Pfo29CoMJrdMvYOHj52KnVKqY6uhRtsuc0eSNwUvbcqFI h7Uw== Received: by 10.50.237.41 with SMTP id uz9mr1438607igc.43.1347597645172; Thu, 13 Sep 2012 21:40:45 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp169617igc; Thu, 13 Sep 2012 21:40:44 -0700 (PDT) Received: by 10.68.228.132 with SMTP id si4mr3404918pbc.57.1347597643781; Thu, 13 Sep 2012 21:40:43 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id ip5si1023162pbc.348.2012.09.13.21.40.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 21:40:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by dade7 with SMTP id e7so2626550dad.37 for ; Thu, 13 Sep 2012 21:40:43 -0700 (PDT) Received: by 10.66.88.198 with SMTP id bi6mr2610666pab.23.1347597643186; Thu, 13 Sep 2012 21:40:43 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id kj10sm378292pbc.72.2012.09.13.21.40.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Sep 2012 21:40:42 -0700 (PDT) From: Tushar Behera To: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: patches@linaro.org, Kevin McKinney , Greg Kroah-Hartman Subject: [PATCH] Staging: bcm: Fix udelay related compilation error Date: Fri, 14 Sep 2012 10:07:33 +0530 Message-Id: <1347597453-19443-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkJHH/gKp5V3abTvXAVFzn8JJRfTGwJBnHov9aIl3p5wBfqXx1PhtNveCyRTf6JpJJ4BTI3 commit 6788d7dab6a5 ("Staging: bcm: Use udelay instead of msleep for delays in nvm.c") replaces msleep with udelay values. udelay values of more than 1000 should be replaced by mdelay instead. This fixes following build error. ERROR: "__bad_udelay" [drivers/staging/bcm/bcm_wimax.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Cc: Kevin McKinney Cc: Greg Kroah-Hartman Signed-off-by: Tushar Behera --- drivers/staging/bcm/nvm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/bcm/nvm.c b/drivers/staging/bcm/nvm.c index b179dba..921e25e 100644 --- a/drivers/staging/bcm/nvm.c +++ b/drivers/staging/bcm/nvm.c @@ -577,7 +577,7 @@ static int FlashSectorErase(struct bcm_mini_adapter *Adapter, * the sector erase cycle is 500 ms to 40000 msec. hence sleeping 10 ms * won't hamper performance in any case. */ - udelay(10000); + mdelay(10); } while ((uiStatus & 0x1) && (iRetries < 400)); if (uiStatus & 0x1) {