Re: [PATCH] staging: fieldbus: simplify devm_anybuss_host_common_probe

From: tiantao (H)
Date: Mon Apr 12 2021 - 09:05:28 EST



在 2021/4/12 20:40, Sven Van Asbroeck 写道:
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.
.
sure. thanks for helping review。