Re: [PATCH 2/3] rtc: Add StarFive JH7110 RTC driver
From: Uwe Kleine-König
Date: Sun Nov 08 2026 - 03:37:48 EST
Hello,
On Fri, Nov 06, 2026 at 05:55:59PM +0000, Owen O'Hehir wrote:
> +#include <linux/mod_devicetable.h>
> [...]
> +#include <linux/platform_device.h>
Please don't include <linux/mod_devicetable.h>. You can (and IMHO
should) assume that <linux/platform_device.h> does provide struct
of_device_id and just drop <linux/mod_devicetable.h>. If you insist on
IWYU, please use <linux/device-id/of.h> instead to not get a bunch of
unneeded dependencies.
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature