diff options
author | Lee Jones <lee.jones@linaro.org> | 2012-05-17 09:45:19 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-05-20 11:27:10 -0400 |
commit | 5a8fea031ed5462b63877e0f6d29e0fc0fb82f14 (patch) | |
tree | f4e913b42a0eb1392f606aa2b6e643a53151dcc0 /drivers | |
parent | 6bc4a568414caab05424b702165a732177daccd0 (diff) |
mfd: Enable ab8500-debug when Device Tree is enabled
Allow the ab8500-debugfs driver to be probed during DT start-up.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/ab8500-debugfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index 9a0211aa8897..50c4c89ab220 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c | |||
@@ -608,10 +608,16 @@ static int __devexit ab8500_debug_remove(struct platform_device *plf) | |||
608 | return 0; | 608 | return 0; |
609 | } | 609 | } |
610 | 610 | ||
611 | static const struct of_device_id ab8500_debug_match[] = { | ||
612 | { .compatible = "stericsson,ab8500-debug", }, | ||
613 | {} | ||
614 | }; | ||
615 | |||
611 | static struct platform_driver ab8500_debug_driver = { | 616 | static struct platform_driver ab8500_debug_driver = { |
612 | .driver = { | 617 | .driver = { |
613 | .name = "ab8500-debug", | 618 | .name = "ab8500-debug", |
614 | .owner = THIS_MODULE, | 619 | .owner = THIS_MODULE, |
620 | .of_match_table = ab8500_debug_match, | ||
615 | }, | 621 | }, |
616 | .probe = ab8500_debug_probe, | 622 | .probe = ab8500_debug_probe, |
617 | .remove = __devexit_p(ab8500_debug_remove) | 623 | .remove = __devexit_p(ab8500_debug_remove) |