Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935057Ab1ETQPS (ORCPT ); Fri, 20 May 2011 12:15:18 -0400 Received: from mail-qy0-f181.google.com ([209.85.216.181]:58912 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934628Ab1ETQPQ convert rfc822-to-8bit (ORCPT ); Fri, 20 May 2011 12:15:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=VLpMlFyu5l/z/Mobsd7pw8WgL4GqmVF2sLNDGsOEf8pnJ0o9qK5P/pMM+k06LUFe+V gz0bD1F9apsPgjbyhevctzPkPIOC6zIK59DXB+4ZoYgvOkLZLBqvOfEYSEQJV20yCXN/ rgBjqbGsEXAz7LHxPa3BlJ9lGe5L+UslXbKDE= MIME-Version: 1.0 In-Reply-To: References: <1305321990-22041-1-git-send-email-balbi@ti.com> <1305321990-22041-2-git-send-email-balbi@ti.com> From: =?ISO-8859-2?Q?Micha=B3_Miros=B3aw?= Date: Fri, 20 May 2011 18:14:55 +0200 Message-ID: Subject: Re: [RFC/PATCH 01/13] net: wl12xx: sdio: id_tables should be __devinitconst To: Ohad Ben-Cohen Cc: Felipe Balbi , Luciano Coelho , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1019 Lines: 23 2011/5/20 Ohad Ben-Cohen : > On Sat, May 14, 2011 at 12:26 AM, Felipe Balbi wrote: >> That's only needed during init anyway, let's free >> some space after we're done probing. > sdio devices are dynamically created whenever the hw is plugged into > the mmc slot by the user. that can happen anytime while the system is > up, not only during init. >> -static const struct sdio_device_id wl1271_devices[] = { >> +static const struct sdio_device_id wl1271_devices[] __devinitconst = { > it looks to me that sdio_match_device is going to be surprised if > ->id_table won't be valid. > > i wouldn't do this, unless you have a good explanation otherwise. devinit sections are not freed if device hotplug is enabled. Best Regards, Micha? Miros?aw -- 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/