Skip to content

Commit

Permalink
correct name for rtc-m41t80
Browse files Browse the repository at this point in the history
The new rtc-m41t80 driver name doesn't match its module name, which
prevents it from properly hotplugging.  Since it's new, no platforms yet
depend on that name ...  so this patch fixes the driver name to match its
module name, rather than going the other way around with a MODULE_ALIAS().

NOTE: This sort of bug is a new thing to watch out for with new-style I2C
drivers; previously I2C couldn't hotplug.

Signed-off-by: David Brownell <[email protected]>
Acked-by: Atsushi Nemoto <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
David Brownell authored and Linus Torvalds committed Aug 23, 2007
1 parent c661b07 commit afe1ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-m41t80.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ static int m41t80_remove(struct i2c_client *client)

static struct i2c_driver m41t80_driver = {
.driver = {
.name = "m41t80",
.name = "rtc-m41t80",
},
.probe = m41t80_probe,
.remove = m41t80_remove,
Expand Down

0 comments on commit afe1ab4

Please sign in to comment.