Re: [PATCH] tty: serial: ip22zilog: Use platform device for probing
From: Greg Kroah-Hartman
Date: Wed Jul 23 2025 - 08:02:55 EST
On Wed, Jul 23, 2025 at 01:58:23PM +0200, Thomas Bogendoerfer wrote:
> +static int __init sgi_zilog_devinit(void)
> +{
> + struct resource res;
> +
> + memset(&res, 0, sizeof(res));
> + res.start = HPC3_CHIP0_BASE + offsetof(struct hpc3_regs, rtcregs);
> + res.end = res.start + sizeof(hpc3c0->rtcregs) - 1;
> + res.flags = IORESOURCE_MEM;
> +
> + return platform_device_register(&zilog_device);
Odd function, why do you need "res" at all if you do not do anything
with it?
thanks,
greg k-h