Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752446AbbE0Cjr (ORCPT ); Tue, 26 May 2015 22:39:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36327 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbbE0Cjo (ORCPT ); Tue, 26 May 2015 22:39:44 -0400 Date: Tue, 26 May 2015 19:39:44 -0700 From: Greg KH To: =?iso-8859-1?Q?Bj=F8rn?= Mork 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 Message-ID: <20150527023944.GC7038@kroah.com> 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> <87a8wsoan6.fsf@nemi.mork.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a8wsoan6.fsf@nemi.mork.no> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1063 Lines: 27 On Mon, May 25, 2015 at 07:00:13PM +0200, Bj?rn Mork wrote: > 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) Thanks, when I get a chance I'll look into this... greg k-h -- 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/