# Re: \[PATCH v3 02/11\] powerpc/mpc5121: Add machine restart support

- From: Anatolij Gustschin \<agust@denx.de\>
- Date: 2010-02-15 16:38:44 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2010/02/9458721
- Thread: https://ratatoskr.run/linuxppc-dev/2010/02/9458579/t.md

```text
Hi Wolfram,

On Wed, 10 Feb 2010 00:24:06 +0100
Wolfram Sang [ref] 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
```
