Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [PATCH] Bluetooth: hci_intel: Cleanup the device probe code From: Marcel Holtmann In-Reply-To: <1443619732-19401-1-git-send-email-jarkko.nikula@linux.intel.com> Date: Wed, 30 Sep 2015 16:52:03 +0200 Cc: linux-bluetooth , linux-acpi@vger.kernel.org, "Gustavo F. Padovan" , Johan Hedberg , Loic Poulain Message-Id: <9BB7E6C8-A45E-4D88-8B01-D1660370B7FF@holtmann.org> References: <1443619732-19401-1-git-send-email-jarkko.nikula@linux.intel.com> To: Jarkko Nikula Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Jarkko, > There is some unneeded code in "hci_intel" probing. First > acpi_match_device() call is needless as driver/platform/acpi core code has > already done the matching before calling the probe and the driver does not > use the returned pointer to matching _HID other than checking is it NULL. > > Then tree wide grep for "hci_intel" doesn't reveal that there is any code > registering this platform device so it looks this device is always backed > with ACPI companion so also ACPI_HANDLE() test can be removed. eventually there will be DT platform device. Does that make a difference or is it still valid to remove this probe handling. Regards Marcel