From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by ozlabs.org (Postfix) with ESMTP id A1562B7080 for ; Tue, 16 Feb 2010 03:38:44 +1100 (EST) Date: Mon, 15 Feb 2010 17:38:30 +0100 From: Anatolij Gustschin To: Wolfram Sang Subject: Re: [PATCH v3 02/11] powerpc/mpc5121: Add machine restart support Message-ID: <20100215173830.7c19416c@wker> In-Reply-To: <20100209232406.GA21807@pengutronix.de> References: <1265377377-29327-1-git-send-email-agust@denx.de> <1265377377-29327-3-git-send-email-agust@denx.de> <20100209232406.GA21807@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org, wd@denx.de, dzu@denx.de, Piotr Ziecik List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Wolfram, On Wed, 10 Feb 2010 00:24:06 +0100 Wolfram Sang wrote: > Two comments: ... > > +void mpc512x_restart(char *cmd) > > +{ > > + struct mpc512x_reset_module *rm = reset_module_base; > > Why not using reset_module_base directly? I will fix it in v4 patch. > > @@ -62,4 +95,5 @@ void __init mpc512x_init(void) > > { > > mpc512x_declare_of_platform_devices(); > > mpc5121_clk_init(); > > + mpc512x_restart_init(); > > If the return value is not checked here, you could as well make the function > void. (Not much one could do in the error-case, too.) Will fix it too, thanks! Anatolij