[PATCH v2 1/3] Added platform module alias for the xiic I2C driver

tumic@gpxsee.org posted 3 patches 3 years, 6 months ago
There is a newer version of this series
[PATCH v2 1/3] Added platform module alias for the xiic I2C driver
Posted by tumic@gpxsee.org 3 years, 6 months ago
From: Martin Tůma <martin.tuma@digiteqautomotive.com>

The missing "platform" alias is required for the mgb4 v4l2 driver to load
the i2c controller driver when probing the HW.

Signed-off-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
---
 drivers/i2c/busses/i2c-xiic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
index b3fe6b2aa3ca..277a02455cdd 100644
--- a/drivers/i2c/busses/i2c-xiic.c
+++ b/drivers/i2c/busses/i2c-xiic.c
@@ -920,6 +920,7 @@ static struct platform_driver xiic_i2c_driver = {
 
 module_platform_driver(xiic_i2c_driver);
 
+MODULE_ALIAS("platform:" DRIVER_NAME);
 MODULE_AUTHOR("info@mocean-labs.com");
 MODULE_DESCRIPTION("Xilinx I2C bus driver");
 MODULE_LICENSE("GPL v2");
-- 
2.37.2

Re: [PATCH v2 1/3] Added platform module alias for the xiic I2C driver
Posted by Michal Simek 3 years, 6 months ago

On 9/19/22 20:55, tumic@gpxsee.org wrote:
> From: Martin Tůma <martin.tuma@digiteqautomotive.com>

Subject should contain subsystem prefix and driver.

i2c: xiic: is commonly used in this driver.

> 
> The missing "platform" alias is required for the mgb4 v4l2 driver to load
> the i2c controller driver when probing the HW.
> 
> Signed-off-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
> ---
>   drivers/i2c/busses/i2c-xiic.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
> index b3fe6b2aa3ca..277a02455cdd 100644
> --- a/drivers/i2c/busses/i2c-xiic.c
> +++ b/drivers/i2c/busses/i2c-xiic.c
> @@ -920,6 +920,7 @@ static struct platform_driver xiic_i2c_driver = {
> 
>   module_platform_driver(xiic_i2c_driver);
> 
> +MODULE_ALIAS("platform:" DRIVER_NAME);
>   MODULE_AUTHOR("info@mocean-labs.com");
>   MODULE_DESCRIPTION("Xilinx I2C bus driver");
>   MODULE_LICENSE("GPL v2");
> --
> 2.37.2
> 

Change is fine.

Thanks,
Michal