[PATCH 2/4] drivers: i2c: add the driver for Andes I2C controller

Andi Shyti andi.shyti at kernel.org
Wed Jan 21 23:32:24 PST 2026


Hi Ben,

...

> +/* I2C may be needed to bring up other drivers */
> +static int __init atciic100_init_driver(void)
> +{
> +	return platform_driver_register(&atciic100_platform_driver);
> +}
> +subsys_initcall(atciic100_init_driver);
> +
> +static void __exit atciic100_exit_driver(void)
> +{
> +	platform_driver_unregister(&atciic100_platform_driver);
> +}
> +module_exit(atciic100_exit_driver);

Please, check how other drivers initialize.

Thanks,
Andi



More information about the linux-riscv mailing list