From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Gortmaker Subject: Re: [PATCH] ARM: pxa: fix build failure for regulator consumer in em-x270.c Date: Wed, 28 Mar 2012 11:59:41 -0400 Message-ID: <4F73356D.5080401@windriver.com> References: <1331244366-6147-1-git-send-email-paul.gortmaker@windriver.com> <4F732C97.2030804@compulab.co.il> <20120328152743.GW3232@opensource.wolfsonmicro.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.windriver.com ([147.11.1.11]:41126 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758258Ab2C1P74 (ORCPT ); Wed, 28 Mar 2012 11:59:56 -0400 In-Reply-To: <20120328152743.GW3232@opensource.wolfsonmicro.com> Sender: linux-next-owner@vger.kernel.org List-ID: To: Mark Brown Cc: Igor Grinberg , haojian.zhuang@gmail.com, linux-arm-kernel@lists.infradead.org, linux-next@vger.kernel.org On 12-03-28 11:27 AM, Mark Brown wrote: > On Wed, Mar 28, 2012 at 05:21:59PM +0200, Igor Grinberg wrote: >> On 03/09/12 00:06, Paul Gortmaker wrote: > >>> +REGULATOR_CONSUMER(ldo3, "reg-userspace-consumer", "vcc gps"); > >> If you make this: >> REGULATOR_CONSUMER(ldo3, NULL, "vcc gps"); > >>> +REGULATOR_CONSUMER(ldo19, "reg-userspace-consumer", "vcc gprs"); >> >> and this: >> REGULATOR_CONSUMER(ldo19, NULL, "vcc gprs"); > > These don't look like good fixes, you should be specifying the > dev_name() for the consumer device? Presumably it's two separate > consumers and should be .0 and .1 or something? Here is what I meant when I said in my v2 comment that there was naming overlap, and that I wasn't sure what impact that had. The two consumers are: static struct platform_device em_x270_gps_userspace_consumer = { .name = "reg-userspace-consumer", .id = 0, .dev = { .platform_data = &em_x270_gps_consumer_data, }, }; and static struct platform_device em_x270_gprs_userspace_consumer = { .name = "reg-userspace-consumer", .id = 1, .dev = { .platform_data = &em_x270_gprs_consumer_data, } }; Note that the existing names currently don't incorporate the .id field as a suffix, and so never were unique. Paul.