Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751316AbbEYRAk (ORCPT ); Mon, 25 May 2015 13:00:40 -0400 Received: from canardo.mork.no ([148.122.252.1]:42688 "EHLO canardo.mork.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750853AbbEYRAe convert rfc822-to-8bit (ORCPT ); Mon, 25 May 2015 13:00:34 -0400 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= To: Greg KH Cc: Heikki Krogerus , Tal Shorer , Sudip Mukherjee , Sasha Levin , USB list , "\" , David Cohen , Felipe Balbi , Lu Baolu Subject: Re: [PATCH] usb: ulpi: don't register drivers if bus doesn't exist Organization: m References: <1432150406-20550-1-git-send-email-sasha.levin@oracle.com> <20150524071948.GA20923@kroah.com> <20150524080940.GA4033@sudip-PC> <20150525114010.GA30679@kuha.fi.intel.com> <20150525161312.GB9772@kroah.com> Date: Mon, 25 May 2015 19:00:13 +0200 In-Reply-To: <20150525161312.GB9772@kroah.com> (Greg KH's message of "Mon, 25 May 2015 09:13:12 -0700") Message-ID: <87a8wsoan6.fsf@nemi.mork.no> User-Agent: Gnus/5.130013 (Ma Gnus v0.13) Emacs/24.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.11 (canardo.mork.no [IPv6:2001:4641::1]); Mon, 25 May 2015 19:00:14 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 917 Lines: 26 Greg KH writes: > If there are other bus drivers that do this, I'll go fix them up, > pointers to those files would be appreciated. git grep -E 'if .*\.p\W' found a couple of interesting candidates you might want to check out: drivers/i2c/i2c-core.c: if (unlikely(WARN_ON(!i2c_bus_type.p))) { drivers/i2c/i2c-core.c: if (unlikely(WARN_ON(!i2c_bus_type.p))) drivers/spmi/spmi.c: if (WARN_ON(!spmi_bus_type.p)) And this looks somewhat suspicious too, but could very well be OK for all I know (very close to nothing :) drivers/gpio/gpiolib-sysfs.c: if (!gpio_class.p) { drivers/gpio/gpiolib-sysfs.c: if (!gpio_class.p) Bjørn -- 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/