Message ID | 20220712214624.1845158-1-linus.walleij@linaro.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | hwmon: drivetemp: Add module alias | expand |
On Tue, Jul 12, 2022 at 11:46:24PM +0200, Linus Walleij wrote: > Adding a MODULE_ALIAS() to drivetemp will make the driver easier > for modprobe to autoprobe. > > Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Applied. Thanks, Guenter > --- > drivers/hwmon/drivetemp.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/hwmon/drivetemp.c b/drivers/hwmon/drivetemp.c > index 1eb37106a220..5bac2b0fc7bb 100644 > --- a/drivers/hwmon/drivetemp.c > +++ b/drivers/hwmon/drivetemp.c > @@ -621,3 +621,4 @@ module_exit(drivetemp_exit); > MODULE_AUTHOR("Guenter Roeck <linus@roeck-us.net>"); > MODULE_DESCRIPTION("Hard drive temperature monitor"); > MODULE_LICENSE("GPL"); > +MODULE_ALIAS("platform:drivetemp");
diff --git a/drivers/hwmon/drivetemp.c b/drivers/hwmon/drivetemp.c index 1eb37106a220..5bac2b0fc7bb 100644 --- a/drivers/hwmon/drivetemp.c +++ b/drivers/hwmon/drivetemp.c @@ -621,3 +621,4 @@ module_exit(drivetemp_exit); MODULE_AUTHOR("Guenter Roeck <linus@roeck-us.net>"); MODULE_DESCRIPTION("Hard drive temperature monitor"); MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:drivetemp");
Adding a MODULE_ALIAS() to drivetemp will make the driver easier for modprobe to autoprobe. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> --- drivers/hwmon/drivetemp.c | 1 + 1 file changed, 1 insertion(+)