Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757043AbYLECIU (ORCPT ); Thu, 4 Dec 2008 21:08:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754083AbYLECIK (ORCPT ); Thu, 4 Dec 2008 21:08:10 -0500 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:45273 "EHLO out1.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbYLECII (ORCPT ); Thu, 4 Dec 2008 21:08:08 -0500 X-Sasl-enc: wa6Lr6LQ5XFXnTNSBPKuAqQP946boFMZV9Bfz7c1V2Uz 1228442887 Date: Fri, 5 Dec 2008 00:08:04 -0200 From: Henrique de Moraes Holschuh To: Alan Jenkins Cc: Matthew Garrett , Len Brown , Andrew Morton , linux-kernel@vger.kernel.org, Matt_Domsch@dell.com, greg@kroah.com, linux-acpi@vger.kernel.org, Richard Purdie , Ivo van Doorn Subject: Re: [PATCH 2/2 update] misc: Add dell-laptop driver Message-ID: <20081205020804.GB4365@khazad-dum.debian.net> References: <20081127163357.GA22846@srcf.ucam.org> <20081127163444.GB22846@srcf.ucam.org> <20081202115029.2b9d1153.akpm@linux-foundation.org> <20081202201645.GB31620@srcf.ucam.org> <20081203195238.GA22560@srcf.ucam.org> <4937B85C.5050808@tuffmail.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4937B85C.5050808@tuffmail.co.uk> X-GPG-Fingerprint: 1024D/1CDB0FE3 5422 5C61 F6B7 06FB 7E04 3738 EE25 DE3F 1CDB 0FE3 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1050 Lines: 27 On Thu, 04 Dec 2008, Alan Jenkins wrote: > I still think you need to initialise wifi_rfkill->state before you call > rfkill_register(). > > It seems an easy mistake, probably the rfkill core should test for it. Well, yes, I could add that paranoia to the core. Added to the todo list. But the core will re-init rfkill->state from rfkill->get_state(), so it is not a serious problem at all (since the drive provides rfkill->get_state(). The reason it is recommended to always init the thing, is that if you later move to a purely event-driven rfkill interface, you won't break things. -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh -- 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/