Re: [PATCH] staging: fieldbus: simplify devm_anybuss_host_common_probe

From: Sven Van Asbroeck
Date: Mon Apr 12 2021 - 08:40:52 EST


On Sun, Apr 11, 2021 at 9:14 PM tiantao (H) <tiantao6@xxxxxxxxxx> wrote:
>
> What about doing it like this?
>
> -static void host_release(struct device *dev, void *res)
> +static void host_release(void *res)
> {
> - struct anybuss_host **dr = res;
> -
> - anybuss_host_common_remove(*dr);
> + anybuss_host_common_remove(res);
> }

That looks like it could work. Can you resend as a "proper" patch,
please? To tell the versions apart, simply specify [PATCH v1] [PATCH
v2] etc in the patch title/subject line. Then below the patch's "---
line", add the version history.