From patchwork Fri Jan 12 15:49:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10161283 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 560E0602D8 for ; Fri, 12 Jan 2018 15:53:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46FDA288DE for ; Fri, 12 Jan 2018 15:53:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0232828AEA; Fri, 12 Jan 2018 15:53:08 +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 1777B28AC6 for ; Fri, 12 Jan 2018 15:51:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934006AbeALPvg (ORCPT ); Fri, 12 Jan 2018 10:51:36 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:49399 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933997AbeALPvd (ORCPT ); Fri, 12 Jan 2018 10:51:33 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0M3B8p-1etLeZ38Jb-00ssl2; Fri, 12 Jan 2018 16:49:28 +0100 From: Arnd Bergmann To: Guenter Roeck , Jean Delvare Cc: Arnd Bergmann , Samuel Mendoza-Jonas , Andrew Jeffery , "Edward A. James" , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hwmon: pmbus: ibm-cffps depends on LEDS_CLASS Date: Fri, 12 Jan 2018 16:49:00 +0100 Message-Id: <20180112154926.3646202-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:9T4VyxuczpHHsCBJ7EqDRC1wvKMqUptFj6JclJxadI0JZbgxO6m +QfzfWDGvZN8VqLjX9Tem1OTrlvhmOhH35xiZO6pkuDUXLK/ZA7Vx7cfSbbp2yz0j9igJ3f Cp6pVo7YNZgeSdwVuDU/LFdFhC86WworsU4yDuMUvwZHHXIvOxzApiZ6615r8smr+ABZg9C gszgTlakbLCO1J7fUTcRQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:U7q2CzO8+P8=:mQ5IC4ZyE/ldc31v0HNPRU SwiZOQTfKUVhIwiCjY1gYcPnVhmONXvZQhAbjUn486/TrBUMU6XUX93Qulv/jBuY6roYVdhhu mAlTijyyFEpJmZ5c+xifg0gPjfchyeY+c4bxEC73uj2gIdGSBHdM6wABkmv1gKo0RZhMFNVX9 pQYKZM5uGJsOc4nBbSo1Gk1Irlm6gzs/+bIY8M9wDNGM9Zclkvnenay0dSXkce3rb5wjXlVvC sK8s7FrXd8cQfGskb27kWynI8pIG8K3gV2/HM8psHsJZhB3KOHDUjDsq9Xg2kjdzPELYpauNC VXJIZNz9qt6bksuwdFYQ416JbGvjwj+Vtq8f2WGyAtmbSPytgCqBNGBbu3MRy/4OThHOOI6FR DZ8kdhO+Fmi3TeC+7UMh/PmSYoM3pyDz7sKVFdzt9O6gwz8xgYlRfBqrvJxhQajf1ccWaygcx ZTV5wH6QeTze7iwO4CPf3zDt/AFm/beQECBh2EyDyhHovd09Qf4yZ8nkcgWPfNcsnixylXNQc Mlhe8LXwDiAmEQlWFk11BKLGG2g1UJVuhK7Q0qIqrfXpO3U3/D9TcKihlc/UjtZWoaG2W5Vij ns7PZ7WaPHv41Zi72mfIIUrX8WyPlCMBmIDXGjPe1VfYp/2sry337z+THflRkvIcGnPTuC66J UWI7jI5d0PePeUsaSnA4+0xWZelW8oljiXUfXGIFynq+xDddbYIYeoIgSZS6j8bjzVaroF8E1 U81TV5F/rvt1mOJMh5dsJy16ldkrgkIXEw2wZw== 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 Building without CONFIG_LEDS_CLASS causes a link failure: drivers/hwmon/pmbus/ibm-cffps.o: In function `ibm_cffps_probe': ibm-cffps.c:(.text+0x4f4): undefined reference to `devm_of_led_classdev_register' This adds the required dependency. Fixes: f69316d62c70 ("hwmon: (pmbus) Add IBM Common Form Factor (CFF) power supply driver") Signed-off-by: Arnd Bergmann --- drivers/hwmon/pmbus/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwmon/pmbus/Kconfig b/drivers/hwmon/pmbus/Kconfig index 08479006c7f9..6e4298e99222 100644 --- a/drivers/hwmon/pmbus/Kconfig +++ b/drivers/hwmon/pmbus/Kconfig @@ -39,6 +39,7 @@ config SENSORS_ADM1275 config SENSORS_IBM_CFFPS tristate "IBM Common Form Factor Power Supply" + depends on LEDS_CLASS help If you say yes here you get hardware monitoring support for the IBM Common Form Factor power supply.