Permalink
Browse files

FogBugz #374571: Fix Sysid driver hotplug support.

The Altera Sysid component is generally part of
of an FPGA design.  The component can be hotplugged
when the FPGA is reconfigured.  This patch fixes the
driver to support the component being hotplugged.

Signed-off-by: Matthew Gerlach <mgerlach@opensource.altera.com>
  • Loading branch information...
1 parent 8144f3d commit 12ff492cde854e64a08f7a016136c98a8c064beb Matthew Gerlach committed with Dinh Nguyen May 3, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/misc/altera_sysid.c
@@ -118,13 +118,13 @@ static struct platform_driver altera_sysid_platform_driver = {
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(altera_sysid_match),
},
+ .probe = altera_sysid_probe,
.remove = altera_sysid_remove,
};
static int __init altera_sysid_init(void)
{
- return platform_driver_probe(&altera_sysid_platform_driver,
- altera_sysid_probe);
+ return platform_driver_register(&altera_sysid_platform_driver);
}
static void __exit altera_sysid_exit(void)

0 comments on commit 12ff492

Please sign in to comment.