diff mbox series

[RFC,3/3] gpio-tps68470: Add modalias

Message ID 20210819201936.7390-4-sakari.ailus@linux.intel.com (mailing list archive)
State RFC, archived
Headers show
Series ACPI, PMICs and probing cameras | expand

Commit Message

Sakari Ailus Aug. 19, 2021, 8:19 p.m. UTC
Add modalias for this driver, so that it is loaded automatically once the
devices pop up.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
 drivers/gpio/gpio-tps68470.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Andy Shevchenko Aug. 20, 2021, 12:24 p.m. UTC | #1
On Thu, Aug 19, 2021 at 11:19:36PM +0300, Sakari Ailus wrote:
> Add modalias for this driver, so that it is loaded automatically once the
> devices pop up.

Not sure if it should be a separate patch, nevertheless
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
>  drivers/gpio/gpio-tps68470.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpio/gpio-tps68470.c b/drivers/gpio/gpio-tps68470.c
> index 0ab88ef241de..8afcd31f4ea3 100644
> --- a/drivers/gpio/gpio-tps68470.c
> +++ b/drivers/gpio/gpio-tps68470.c
> @@ -158,3 +158,4 @@ static struct platform_driver tps68470_gpio_driver = {
>  module_platform_driver(tps68470_gpio_driver);
>  
>  MODULE_LICENSE("GPL");
> +MODULE_ALIAS("platform:tps68470-gpio");
> -- 
> 2.30.2
>
diff mbox series

Patch

diff --git a/drivers/gpio/gpio-tps68470.c b/drivers/gpio/gpio-tps68470.c
index 0ab88ef241de..8afcd31f4ea3 100644
--- a/drivers/gpio/gpio-tps68470.c
+++ b/drivers/gpio/gpio-tps68470.c
@@ -158,3 +158,4 @@  static struct platform_driver tps68470_gpio_driver = {
 module_platform_driver(tps68470_gpio_driver);
 
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:tps68470-gpio");