Re: [PATCH 2/3] nvmem: Add Sophgo SG2044 eFuse driver
From: Uwe Kleine-König
Date: Thu Oct 15 2026 - 02:32:29 EST
hello,
On Wed, Oct 14, 2026 at 03:45:14PM +0800, Inochi Amaoto wrote:
> +#include <linux/mod_devicetable.h>
> [...]
> +#include <linux/platform_device.h>
<linux/platform_device.h> already provides of_device_id and
<linux/mod_devicetable.h> pulls in a looot of dependencies this driver
doesn't need. So please drop the latter.
> +static const struct of_device_id sophgo_efuses_of_match[] = {
> + { .compatible = "sophgo,sg2044-efuse", },
s/,//
> + {}
s/{}/{ }/
> +};
> +
Drop this empty line
> +MODULE_DEVICE_TABLE(of, sophgo_efuses_of_match);
> +
> +static struct platform_driver sophgo_efuses_driver = {
> + .driver = {
> + .name = "sophgo_efuse",
> + .of_match_table = sophgo_efuses_of_match,
> + },
> + .probe = sophgo_efuses_probe,
> +};
> +
and this one, too.
> +module_platform_driver(sophgo_efuses_driver);
> +
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature