From patchwork Sun Apr 21 15:05:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohan Kumar X-Patchwork-Id: 10910527 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9F3F11515 for ; Sun, 21 Apr 2019 15:07:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85A9428508 for ; Sun, 21 Apr 2019 15:07:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 790602852C; Sun, 21 Apr 2019 15:07:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1811B28508 for ; Sun, 21 Apr 2019 15:07:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727415AbfDUPF7 (ORCPT ); Sun, 21 Apr 2019 11:05:59 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33894 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727228AbfDUPF7 (ORCPT ); Sun, 21 Apr 2019 11:05:59 -0400 Received: by mail-lj1-f196.google.com with SMTP id j89so8400390ljb.1; Sun, 21 Apr 2019 08:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=neW9Z2muRazppX6r3acCm70v3rfLtaqcH4W12B5drpc=; b=o+/AFTrMli4ngfSDgiYGmOvdi82hmpAFcHuglD8KEWrLybW7kbwdniFUnBRw7sCVyt Fnk4Bb5znq2xAhhgPWvM3vLq7/OMC7BVQoiy8EIb8roE7Fmb3HxHItJlaruDBgkrAWUI gzXr+kP6H9l0zKKdL675ovXU7so4n1mdhnOnoklnoyxTVybyKgAAU4cwcz/3DDpFxku8 DGKBLtjwUoIcyMAPXTwQlR4k8AVCfZX11iHImVyLRKPUQecfd1HWU1l+ckcjI3UfEK7p tFzww97WmJ+dhOeYC2xT1KiZpWmE11YRxgNbRSqBUA/+9zZk8znpcBp7VRFyZ5jrp+SA LBQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=neW9Z2muRazppX6r3acCm70v3rfLtaqcH4W12B5drpc=; b=nxjiQiZysbf0D197nKwPADAWEs4PoZxQvPVPNjBN1C7ESgVHfACBL2Z9Dd7pCzfo9n lsMy7tQvUZ44EpYbEiWerQ7du9lrvT9pI4NhpThxlLm7XZjM9wI79C0Fe5T7+2BHKFME x5HTZ3qyNXbBeZv7xjesxhXmPZp7TYe4H+QOZMm+EaQ5K0j5mdQi+APR3YgnhCODIsRt OYXgCsdo4TGymyCYW/mA7PY49Py90Rw2mczXSCdeRZBHH0ZYxwJT56uDdErjh7vDiW2U eQJhXVcofYE/uN/Jjqfb2wmpyMRGj7O+BgOsm+py10HoWchr5U9gjUpNq+sTCiYg+1II MiyQ== X-Gm-Message-State: APjAAAWwh4Qmu1lYMlg7CdvdUw2Np5A1LIJwrxsWk9Kau7bJ0L0t5uHm tPXYD414MdnHavOHbyY0IJw= X-Google-Smtp-Source: APXvYqyfjLII0YN0iGw64oR1f1UTki9rXy2FvbkgQnZ2aAcVROyECaQpfUwzKCa4EcKDOQxHHnkXnA== X-Received: by 2002:a2e:8316:: with SMTP id a22mr7752585ljh.171.1555859157352; Sun, 21 Apr 2019 08:05:57 -0700 (PDT) Received: from localhost.localdomain (87-181-108.netrun.cytanet.com.cy. [87.228.181.108]) by smtp.gmail.com with ESMTPSA id v11sm2498981lfb.68.2019.04.21.08.05.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Apr 2019 08:05:56 -0700 (PDT) From: mohankumar718@gmail.com To: rjw@rjwysocki.net Cc: viresh.kumar@linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, lkp@intel.com, Mohan Kumar Subject: [RESEND] drivers: cpufreq: use kstrtoul instead of obsolete simple_strtoul issue fixed Date: Sun, 21 Apr 2019 18:05:56 +0300 Message-Id: <20190421150556.23341-1-mohankumar718@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mohan Kumar Replace the obsolte simple_strtoul function with kstrtoul. Signed-off-by: Mohan Kumar --- drivers/cpufreq/elanfreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/elanfreq.c b/drivers/cpufreq/elanfreq.c index 03419f064752..6d861c2364e2 100644 --- a/drivers/cpufreq/elanfreq.c +++ b/drivers/cpufreq/elanfreq.c @@ -184,7 +184,8 @@ static int elanfreq_cpu_init(struct cpufreq_policy *policy) */ static int __init elanfreq_setup(char *str) { - max_freq = simple_strtoul(str, &str, 0); + unsigned long int val = 0; + max_freq = kstrtoul(str, 0, &val); pr_warn("You're using the deprecated elanfreq command line option. Use elanfreq.max_freq instead, please!\n"); return 1; }