diff mbox series

rtc: mcp795: drop unneeded MODULE_ALIAS

Message ID 20240414154910.126991-1-krzk@kernel.org
State Accepted
Headers show
Series rtc: mcp795: drop unneeded MODULE_ALIAS | expand

Commit Message

Krzysztof Kozlowski April 14, 2024, 3:49 p.m. UTC
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.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/rtc/rtc-mcp795.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Alexandre Belloni April 16, 2024, 11:43 p.m. UTC | #1
On Sun, 14 Apr 2024 17:49:10 +0200, Krzysztof Kozlowski wrote:
> 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,
diff mbox series

Patch

diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp795.c
index 0d515b3df571..e12f0f806ec4 100644
--- a/drivers/rtc/rtc-mcp795.c
+++ b/drivers/rtc/rtc-mcp795.c
@@ -450,4 +450,3 @@  module_spi_driver(mcp795_driver);
 MODULE_DESCRIPTION("MCP795 RTC SPI Driver");
 MODULE_AUTHOR("Josef Gajdusek <atx@atx.name>");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS("spi:mcp795");