Hello.
Maxim wrote:
quoted text > ---
> This adds support of suspend/resume on i386 for HPET
The part after usually "---" gets cut off, the patch description and
signoff should actially *precede* it.
quoted text > Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
quoted text > diff --git a/arch/i386/kernel/hpet.c b/arch/i386/kernel/hpet.c
> index 0fd9fba..7c67780 100644
> --- a/arch/i386/kernel/hpet.c
> +++ b/arch/i386/kernel/hpet.c
[...]
quoted text > +static __init int hpet_register_sysfs(void)
> +{
> + int err;
> +
> + if (!is_hpet_capable())
> + return 0;
> +
> + err = sysdev_class_register(&hpet_class);
> +
> + if (!err) {
> + sysdev_register(&hpet_device);
> + if (err)
> + sysdev_class_unregister(&hpet_class);
This doesn't make sense, err will always be 0. Perhaps you actually
intended to check the result of sysdev_register()?
quoted text > + }
> +
> + return err;
> +}
> +
> +device_initcall(hpet_register_sysfs);
> +
> +#endif
WBR, Sergei
-
unsubscribe notice 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/
Messages in current thread:
Re: [ PATCH] Add suspend/resume for HPET was: Re: [3/6] 2. ... , Sergei Shtylyov , (Thu Mar 29, 6:20 am)