Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966715AbeAOPZh (ORCPT + 1 other); Mon, 15 Jan 2018 10:25:37 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:60664 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966384AbeAOPZf (ORCPT ); Mon, 15 Jan 2018 10:25:35 -0500 Subject: Re: [PATCH] hwmon: pmbus: ibm-cffps depends on LEDS_CLASS To: Guenter Roeck References: Cc: arnd@arndb.de, jdelvare@suse.com, sam@mendozajonas.com, Andrew Jeffery , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org From: Eddie James Date: Mon, 15 Jan 2018 09:24:25 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18011515-0044-0000-0000-000003CF5DAB X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008383; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000245; SDB=6.00975414; UDB=6.00494371; IPR=6.00755340; BA=6.00005778; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00019046; XFM=3.00000015; UTC=2018-01-15 15:24:28 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18011515-0045-0000-0000-000007FEBA87 Message-Id: <6b9d8164-a2cf-8449-ad97-6331494d8427@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-01-15_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1801150219 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, Jan 12, 2018 at 06:19:00PM +0100, Guenter Roeck wrote: > On Fri, Jan 12, 2018 at 04:49:00PM +0100, Arnd Bergmann wrote: > > 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 > > I wanted to let Edward decide if he wants the new dependency or > conditional code > in the driver. Not having heard from him, I'll take your patch instead > for now. Thanks, yes this is a good solution for this driver. Didn't think about that during testing... Thanks Arnd. Eddie > > Thanks, > Guenter > > > --- > >  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. > > -- > > 2.9.0 > > >