forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: fix platform driver hotplug/coldplug
Since 43cc71e, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable serial platform drivers, to re-enable auto loading. NOTE that Kconfig for some of these drivers doesn't allow modular builds, and thus doesn't match the driver source's unload support. Presumably their unload code is buggy and/or weakly tested... [[email protected]: more drivers, registration fixes] Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: David Brownell <[email protected]> Acked-by: Peter Korsgaard <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
1 parent
12c2c01
commit e169c13
Showing
15 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1243,6 +1243,7 @@ static struct platform_driver bfin_serial_driver = { | |
.resume = bfin_serial_resume, | ||
.driver = { | ||
.name = "bfin-uart", | ||
.owner = THIS_MODULE, | ||
}, | ||
}; | ||
|
||
|
@@ -1301,3 +1302,4 @@ MODULE_AUTHOR("Aubrey.Li <[email protected]>"); | |
MODULE_DESCRIPTION("Blackfin generic serial port driver"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS_CHARDEV_MAJOR(BFIN_SERIAL_MAJOR); | ||
MODULE_ALIAS("platform:bfin-uart"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -649,5 +649,6 @@ module_exit(mcf_exit); | |
MODULE_AUTHOR("Greg Ungerer <[email protected]>"); | ||
MODULE_DESCRIPTION("Freescale ColdFire UART driver"); | ||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS("platform:mcfuart"); | ||
|
||
/****************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1935,3 +1935,7 @@ console_initcall(s3c24xx_serial_initconsole); | |
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR("Ben Dooks <[email protected]>"); | ||
MODULE_DESCRIPTION("Samsung S3C2410/S3C2440/S3C2412 Serial port driver"); | ||
MODULE_ALIAS("platform:s3c2400-uart"); | ||
MODULE_ALIAS("platform:s3c2410-uart"); | ||
MODULE_ALIAS("platform:s3c2412-uart"); | ||
MODULE_ALIAS("platform:s3c2440-uart"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1552,3 +1552,4 @@ module_init(sci_init); | |
module_exit(sci_exit); | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_ALIAS("platform:sh-sci"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters