staging: ccree: drop ifdef CONFIG_OF in code
authorGilad Ben-Yossef <gilad@benyossef.com>
Thu, 14 Dec 2017 14:02:38 +0000 (14:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 14:15:53 +0000 (15:15 +0100)
As we already depend on CONFIG_OF via Kconfig no need to
support conditional build without it.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_driver.c

index 28cfbb4d63b04d2e3c135bb4d8ed9eb3a15f98ae..fbf03385631735519e153a1cb9241afb1008c942 100644 (file)
@@ -512,20 +512,16 @@ static const struct dev_pm_ops arm_cc7x_driver_pm = {
 #define        CC_DRIVER_RUNTIME_PM    NULL
 #endif
 
-#ifdef CONFIG_OF
 static const struct of_device_id arm_cc7x_dev_of_match[] = {
        {.compatible = "arm,cryptocell-712-ree"},
        {}
 };
 MODULE_DEVICE_TABLE(of, arm_cc7x_dev_of_match);
-#endif
 
 static struct platform_driver cc7x_driver = {
        .driver = {
                   .name = "cc7xree",
-#ifdef CONFIG_OF
                   .of_match_table = arm_cc7x_dev_of_match,
-#endif
                   .pm = CC_DRIVER_RUNTIME_PM,
        },
        .probe = cc7x_probe,