Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964911AbVKHGud (ORCPT ); Tue, 8 Nov 2005 01:50:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965298AbVKHGud (ORCPT ); Tue, 8 Nov 2005 01:50:33 -0500 Received: from smtp.osdl.org ([65.172.181.4]:7872 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S964911AbVKHGud (ORCPT ); Tue, 8 Nov 2005 01:50:33 -0500 Date: Mon, 7 Nov 2005 22:50:19 -0800 From: Andrew Morton To: Pierre Ossman Cc: drzeus-list@drzeus.cx, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [MMC] wbsd pnp suspend Message-Id: <20051107225019.7cd01a77.akpm@osdl.org> In-Reply-To: <20051108064100.18059.79712.stgit@poseidon.drzeus.cx> References: <20051108064100.18059.79712.stgit@poseidon.drzeus.cx> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1025 Lines: 42 Pierre Ossman wrote: > > Allow the wbsd driver to use the new suspend/resume functions added to > the PnP layer. > Doesn't Russell handle mmc stuff? > -static int wbsd_suspend(struct device *dev, pm_message_t state) > +static int wbsd_suspend(struct wbsd_host *host, pm_message_t state) > +{ > + BUG_ON(host == NULL); > + > + return mmc_suspend_host(host->mmc, state); > +} There's not much point in this BUG_ON. If host==0 then we'll get a perfectly good oops in the next statement - it's just as informative. > +static int wbsd_resume(struct wbsd_host *host) > +{ > + BUG_ON(host == NULL); Ditto. > + if (host->config != 0) > + { > + if (!wbsd_chip_validate(host)) > + { Like: if (host->config != 0) { if (!wbsd_chip_validate(host)) { please. - 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/