From patchwork Wed Jun 21 21:08:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Sorenson X-Patchwork-Id: 9803021 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 662ED600C5 for ; Wed, 21 Jun 2017 21:52:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57EF4274D1 for ; Wed, 21 Jun 2017 21:52:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A7C320408; Wed, 21 Jun 2017 21:52:03 +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=-6.9 required=2.0 tests=BAYES_00,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 080D328544 for ; Wed, 21 Jun 2017 21:52:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752075AbdFUVwB (ORCPT ); Wed, 21 Jun 2017 17:52:01 -0400 Received: from ewout01.mycci.net ([66.60.130.50]:44596 "EHLO ewout01.mycci.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbdFUVwA (ORCPT ); Wed, 21 Jun 2017 17:52:00 -0400 X-Greylist: delayed 1188 seconds by postgrey-1.27 at vger.kernel.org; Wed, 21 Jun 2017 17:52:00 EDT Received: from mail.cpinternet.com ([209.240.224.81]) by ewout01.mycci.net ({dfaaa318-551d-4a0a-8038-7c31cf31c4f6}) via TCP (outbound) with ESMTP id 20170621211559951_0000 for ; Wed, 21 Jun 2017 14:15:59 -0700 X-RC-FROM: X-RC-RCPT: Received: from [10.4.0.103] (unverified [73.164.78.214]) by cpinternet.com (SurgeMail 3.8t) with ESMTP id 2421718-1881964 for ; Wed, 21 Jun 2017 16:15:56 -0500 CDT Subject: [PATCH] w83627hf.c removed deprecated References: To: linux-hwmon@vger.kernel.org From: Chris Sorenson X-Forwarded-Message-Id: Message-ID: Date: Wed, 21 Jun 2017 16:08:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: 73.164.78.214 X-Authenticated-User: csoren@cpinternet.com X-NotAscii: charset=utf-8; X-VirusScan: Message is clean (g_virus_cmd scanned message) X-Encryption: SSL encrypted X-IP-stats: Incoming Last 4, First 556, in=73, out=0, spam=0 ip=73.164.78.214 X-MAG-OUTBOUND: surewest.redcondor.net@209.240.224/24 X-MAG-EWAV: ewavFastFail Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Replaces a call to deprecated function hwmon_device_register() ----- Signed-off-by: Chris Sorenson Changed to call hwmon_device_register_with_info() instead of hwmon_device_register(), which is deprecated. modified: drivers/hwmon/w83627hf.c err = PTR_ERR(data->hwmon_dev); goto error; --- To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c index 8ac89d0..fbc5d18 100644 --- a/drivers/hwmon/w83627hf.c +++ b/drivers/hwmon/w83627hf.c @@ -1569,7 +1569,8 @@ static int w83627hf_probe(struct platform_device *pdev) goto error; } - data->hwmon_dev = hwmon_device_register(dev); + data->hwmon_dev = + hwmon_device_register_with_info(dev, NULL, NULL, NULL, NULL); if (IS_ERR(data->hwmon_dev)) {