Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751191Ab0HSCvr (ORCPT ); Wed, 18 Aug 2010 22:51:47 -0400 Received: from adelie.canonical.com ([91.189.90.139]:49355 "EHLO adelie.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944Ab0HSCvo (ORCPT ); Wed, 18 Aug 2010 22:51:44 -0400 Message-ID: <4C6C9C36.7080904@canonical.com> Date: Thu, 19 Aug 2010 10:51:34 +0800 From: Ike Panhc User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 To: Matthew Garrett CC: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Thomas Renninger , Alan Cox , Andrew Morton , Corentin Chary , David Woodhouse , Randy Dunlap , Len Brown Subject: Re: [PATCH 3/8] ideapad: make sure we bind on the correct device References: <1282120564-11324-1-git-send-email-ike.pan@canonical.com> <1282120653-11434-1-git-send-email-ike.pan@canonical.com> <20100818132722.GA12709@srcf.ucam.org> In-Reply-To: <20100818132722.GA12709@srcf.ucam.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 794 Lines: 17 On 08/18/2010 09:27 PM, Matthew Garrett wrote: > On Wed, Aug 18, 2010 at 04:37:33PM +0800, Ike Panhc wrote: >> By reading from method _STA and _CFG to make sure we bind on the correct >> VPC2004 device. > > I know some other drivers check _STA themselves, but it's unnecessary - > if _STA didn't evaluate appropriately, the bus driver won't create the > pnp object and there won't be anything for you to bind to in the first > place. > yes, you are right. when add, acpi_bus will check for it and tell if the device exist or not from its bits. -- 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/