Skip to contentSkip to conversation

rtc: mcp795: drop unneeded MODULE_ALIAS

PATCH Applied Krzysztof Kozlowski 2 participants 2 messages Apr 14, 2024 – Apr 16, 2024 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: mcp795: drop unneeded MODULE_ALIAS

The ID table already has respective entry and MODULE_DEVICE_TABLE and creates proper alias for SPI driver. Having another MODULE_ALIAS causes the alias to be duplicated.

---
 drivers/rtc/rtc-mcp795.c | 1 -
 1 file changed, 1 deletion(-)
drivers/rtc/rtc-mcp795.c +0 -1
index 0d515b3df571..e12f0f806ec4 100644
@@ -450,4 +450,3 @@ module_spi_driver(mcp795_driver);
 MODULE_DESCRIPTION("MCP795 RTC SPI Driver");
 MODULE_AUTHOR("Josef Gajdusek <[email protected]>");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS("spi:mcp795");
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 5 lines · Krzysztof Kozlowski

The ID table already has respective entry and MODULE_DEVICE_TABLE and creates proper alias for SPI driver. Having another MODULE_ALIAS causes the alias to be duplicated.

Applied, thanks!

[1/1] rtc: mcp795: drop unneeded MODULE_ALIAS

      https://git.kernel.org/abelloni/c/393e3d290f61

Best regards,

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com