Re: [PATCH] clk: samsung: Changed return behavior of samsung_clk_init

From: Tomasz Figa
Date: Thu Jul 31 2014 - 18:25:52 EST


Humberto,

On 31.07.2014 23:43, Humberto Silva Naves wrote:
> Instead of invoking panic, the samsung_clk_init returns a NULL
> pointer to indicate that an error has occurred. All the drivers
> using this function were changed appropriately (in this case
> just the clk-exynos5410).
>
> This patch was suggested by Tomasz Figa in
> http://www.mail-archive.com/linux-samsung-soc@xxxxxxxxxxxxxxx/msg34982.html

There is a Suggested-by tag that can be added before your sign-off.
Similarly there are few other useful tags which are good to know.

>
> Signed-off-by: Humberto Silva Naves <hsnaves@xxxxxxxxx>
> ---
> drivers/clk/samsung/clk-exynos5410.c | 2 ++
> drivers/clk/samsung/clk.c | 8 +++++---
> 2 files changed, 7 insertions(+), 3 deletions(-)
>

In general the patch looks good, thanks for you work. Will wait some
time to let people review it and then apply.

As a side note, it is always good to say why the patch is good in commit
message, so that maintainers know that author knows what he does, they
indeed want this patch and people that would stumble upon this patch in
future could know the rationale behind this change. This patch is pretty
trivial, though, so I'll let it go this time.

Best regards,
Tomasz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/