From: Lee Jones Date: Thu, 17 May 2012 13:45:19 +0000 (+0100) Subject: mfd: Enable ab8500-debug when Device Tree is enabled X-Git-Tag: firefly_0821_release~3680^2~2729^2~20 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a8fea031ed5462b63877e0f6d29e0fc0fb82f14;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Samuel Ortiz --- 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) return 0; } +static const struct of_device_id ab8500_debug_match[] = { + { .compatible = "stericsson,ab8500-debug", }, + {} +}; + static struct platform_driver ab8500_debug_driver = { .driver = { .name = "ab8500-debug", .owner = THIS_MODULE, + .of_match_table = ab8500_debug_match, }, .probe = ab8500_debug_probe, .remove = __devexit_p(ab8500_debug_remove)