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: 124364 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2211243qgn; Fri, 12 Jan 2018 07:51:40 -0800 (PST) X-Google-Smtp-Source: ACJfBotFdJp+0qq9VHkj7SFWnnFsVYixAmorzU+Zb2LmvlRIrs9KbPKVBhMpMYEIo8ZhNqYNdiwA X-Received: by 10.98.202.8 with SMTP id n8mr23650927pfg.184.1515772300565; Fri, 12 Jan 2018 07:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515772300; cv=none; d=google.com; s=arc-20160816; b=0MuZULSvVDLktk1OlClW155X/sY4u+8qhHUYlyL/L+80ivbZunQ71ogLce2Hk0L2xR XXi8pp25lr5ka4jpL7iJ1t8TJtQrVj77H+TT8xakWw8pzkp+59/o0Dslpt60FDs/aNFZ 8QXm3TeBpa/WfCa71Py2xAtwk8ME9jKuUqlr9t1QewLdvvOveV4qNh7XurTwYnW7MsSD 8bRZMkZKQ5kmyerg8hJAemj/AavaH+zjXVt8UGqrK8+bshUJtetfwVjMUQtPnl+slURd Y8PRsKRV6OBr15wPMprOrjXe7V6tWxP+GDNLa0XseY1K1CUqi1ZD1jwjxTd2UiXSfpNP acyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=43bx5/l2ZSegN8php6QQpev0EsIhDrZcLhDU+WIxXh0=; b=opGF7EqtKlSmAzKVa7RPcOlJZZ2hy7XXj3kFxi5FermZKjWBVpDzl6RKhAoFpQ3EJR XvlOVZpLGgsyhBR2J7hVtipllJbx4j4DLbAQwPa09U/4c0XPrtmC+qVBe2yAGkt6J4hs z7HikUrgQTRJSGw/cQsddGQH4do2bzX7GFieegFkGBjnjCrMSDcC+K93I8rI6qj4ibCK jvXnoud7XUwRwaehZ9AIwM/Uj7AC5UElXljwoufOotJHzVcrrQDbVY4o3afWNyysiBaf xFsRTXQy00liajzRUCxiH0WWG7+IGjINrCqf8iCkwK9N0Fnm0DDLcXy4jtrRYHA+OIRA UZrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si15420202pff.69.2018.01.12.07.51.40; Fri, 12 Jan 2018 07:51:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934214AbeALPvh (ORCPT + 28 others); Fri, 12 Jan 2018 10:51:37 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.9.0 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.