From mboxrd@z Thu Jan 1 00:00:00 1970 From: Huang Ying Subject: Re: [PATCH 4/4] [Patch-next] ACPI, APEI, HEST Fix the unsuitable usage of platform_data. Date: Tue, 17 Aug 2010 12:18:18 +0800 Message-ID: <1282018698.2744.1508.camel@yhuang-dev> References: <4C69DEA5.1020902@np.css.fujitsu.com> <1282009188.2744.1498.camel@yhuang-dev> <4C69FB32.4000802@np.css.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com ([134.134.136.20]:1839 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750970Ab0HQESV (ORCPT ); Tue, 17 Aug 2010 00:18:21 -0400 In-Reply-To: <4C69FB32.4000802@np.css.fujitsu.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Jin Dongming Cc: Randy Dunlap , Stephen Rothwell , Andi Kleen , Hidetoshi Seto , ACPI , LKLM On Tue, 2010-08-17 at 11:00 +0800, Jin Dongming wrote: > > Why not use platform_device_add_data? > Here what should be done is to transport the pointer of hest_hdr to platform_data, > so I think that it could be done successfully by allocating 8byte of memory. > If the platform_device_add_data() is used, the more memory will be allocated. > > So I think this method is better than using platform_device_add_data(). You can specify allocation size for platform_device_add_data(), so no more memory will be allocated. Best Regards, Huang Ying