Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756058Ab1CAJN3 (ORCPT ); Tue, 1 Mar 2011 04:13:29 -0500 Received: from eu1sys200aog104.obsmtp.com ([207.126.144.117]:35348 "EHLO eu1sys200aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756035Ab1CAJN1 (ORCPT ); Tue, 1 Mar 2011 04:13:27 -0500 Message-ID: <4D6CB8A3.9080203@st.com> Date: Tue, 1 Mar 2011 14:43:07 +0530 From: viresh kumar User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Uwe_Kleine-K=F6nig?= Cc: "linux-arm-kernel@lists.infradead.org" , "linux@arm.linux.org.uk" , Vipin KUMAR , Shiraz HASHIM , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" Subject: Re: [RFC] device.h: add device_set_platdata routine References: <5c561db378360ad1763da41f8350c7be816daa06.1298953633.git.viresh.kumar@st.com> <20110301075953.GR22310@pengutronix.de> <4D6CADE5.6000206@st.com> <20110301090518.GV22310@pengutronix.de> In-Reply-To: <20110301090518.GV22310@pengutronix.de> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 590 Lines: 15 On 03/01/2011 02:35 PM, Uwe Kleine-K?nig wrote: >> > Ok. So we should use platform_device_add_data instead and mark our platform >> > data's struct as __init. So that it doesn't consume any memory after >> > this routine is done?? > Yeah, either __initdata or still better const + __initconst if possible. Ok. Thanks for your help. -- viresh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/