From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Jenkins Subject: [PATCH 0/5] dell-laptop improvements Date: Wed, 19 Aug 2009 15:03:15 +0100 Message-ID: <4A8C0623.8030808@tuffmail.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from ey-out-2122.google.com ([74.125.78.25]:30159 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751849AbZHSODS (ORCPT ); Wed, 19 Aug 2009 10:03:18 -0400 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Matthew Garrett Cc: Marcel Holtmann , linux acpi , linux-kernel , "linux-wireless@vger.kernel.org" Mario Limonciello's compal-laptop changes were partly based on a reading of dell-laptop. Unfortunately dell-laptop set a few bad examples; let's fix them. I don't have the hardware to test this, but the first four patches should be nice and low risk. dell-laptop: fix a use-after-free error on the failure path dell-laptop: fix rfkill memory leak on unload and failure paths dell-laptop: create a platform device as a parent for the rfkill devices etc. dell-laptop: add __init to init functions The last patch adds polling for the hardware switch which blocks all radios. This exercises the hardware a little more than before; it would benefit from testing. It should be possible to see events generated by the hardware switch using "udevadm monitor --kernel --environment". dell-laptop: poll the rfkill hard-block