From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH Resend] driver/core: cpu: initialize opp table Date: Thu, 22 May 2014 01:57:29 +0200 Message-ID: <2173444.bOnmhZJafF@vostro.rjw.lan> References: <60d825e8bfe01f8a5ff98fffaf51ffbf04c7d175.1400480033.git.viresh.kumar@linaro.org> <4765191.0FhyvSGyvF@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Viresh Kumar Cc: Lists linaro-kernel , "linux-pm@vger.kernel.org" , Linux Kernel Mailing List , Arvind Chauhan , Ips Gandhi , Pavel Machek , Nishanth Menon , Chander Kashyap , Greg Kroah-Hartman , Amit Daniel Kachhap , Kukjin Kim , Shawn Guo , Sudeep Holla List-Id: linux-pm@vger.kernel.org On Tuesday, May 20, 2014 08:08:11 AM Viresh Kumar wrote: > On 20 May 2014 02:43, Rafael J. Wysocki wrote: > > What about > > > > if (error) > > return error; > > > > and then you'd save an indentation level? > > Yes. > > > Anyway, I find adding of_node* stuff directly to the driver core this way > > kind of disgusting as there still are platforms that don't use it. > > > > Can we have a call to a function that will change into an empty stub on such > > platforms here, please? > > Okay. But can you explain a bit more about how and where those stubs > would be implemented? In a header file included by cpu.c. Something like #if defined(CONFIG_OF) && defined(CONFIG_PM_OPP) #else static inline #endif -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.