From patchwork Mon Jun 8 10:31:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Jenkins X-Patchwork-Id: 28611 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n58AVT5J011283 for ; Mon, 8 Jun 2009 10:31:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753705AbZFHKbR (ORCPT ); Mon, 8 Jun 2009 06:31:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754075AbZFHKbR (ORCPT ); Mon, 8 Jun 2009 06:31:17 -0400 Received: from mail-bw0-f213.google.com ([209.85.218.213]:52957 "EHLO mail-bw0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753705AbZFHKbQ (ORCPT ); Mon, 8 Jun 2009 06:31:16 -0400 Received: by bwz9 with SMTP id 9so2933001bwz.37 for ; Mon, 08 Jun 2009 03:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=AqjkoWkC6caG0rn66LHo3a8FFjSp4u2Bd9yst1Pzdu8=; b=TZ+dI+dL2kj/Rv9mCnucAJpVw9eHbsa1hNTdfkaZH3Koj96sWc08u7mGNbSu3JXpTE K4G+VTd/UNn/7fPE00OEeCOCxPvvx005f7NkAJ89x8Vz2IspDPUiiAydB2lbnlMDS4NN 1SEVVgFAFhVBLoIpW1uw6g10z9dMCwErUzUJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=Z+PB2Tq15F07lrFGj612RJcsPkS40nYzMKVrNKaUBTCu9Si27p6+X0KSxNbNirepi6 NEJ5zy9s4HgwKZj6Uk/QaC2QCzrOIHDqkOmW7nop84+/flBevEwTpA0FTzyDTdbLmvRv 7zohz9pCqWTOZFkQPmuudlg6w/txgmz8xEvVY= Received: by 10.204.59.145 with SMTP id l17mr6510047bkh.28.1244457076587; Mon, 08 Jun 2009 03:31:16 -0700 (PDT) Received: from ?192.168.0.5? ([86.53.68.233]) by mx.google.com with ESMTPS id 13sm3472968fks.22.2009.06.08.03.31.15 (version=SSLv3 cipher=RC4-MD5); Mon, 08 Jun 2009 03:31:15 -0700 (PDT) Message-ID: <4A2CE86F.9040209@tuffmail.co.uk> Date: Mon, 08 Jun 2009 11:31:11 +0100 From: Alan Jenkins User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: Johannes Berg , Mattia Dongili CC: "linux-wireless@vger.kernel.org" , linux acpi Subject: [PATCH] sony-laptop: no need to unblock rfkill on load Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org The re-written rfkill core ensures rfkill devices are initialized to the system default state. The core calls set_block after registration so the driver shouldn't need to. Signed-off-by: Alan Jenkins --- This patch applies on top of the rfkill rewrite in the wireless-testing tree. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index aec0b27..c1b21a4 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -1114,7 +1114,6 @@ static int sony_nc_setup_rfkill(struct acpi_device *device, return err; } sony_rfkill_devices[nc_type] = rfk; - sony_nc_rfkill_set((void *)nc_type, false); return err; }