Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16bcccb7 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman
Browse files

staging: ccree: drop ifdef CONFIG_OF in code



As we already depend on CONFIG_OF via Kconfig no need to
support conditional build without it.

Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 82a708e7
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -512,20 +512,16 @@ static const struct dev_pm_ops arm_cc7x_driver_pm = {
#define	CC_DRIVER_RUNTIME_PM	NULL
#define	CC_DRIVER_RUNTIME_PM	NULL
#endif
#endif


#ifdef CONFIG_OF
static const struct of_device_id arm_cc7x_dev_of_match[] = {
static const struct of_device_id arm_cc7x_dev_of_match[] = {
	{.compatible = "arm,cryptocell-712-ree"},
	{.compatible = "arm,cryptocell-712-ree"},
	{}
	{}
};
};
MODULE_DEVICE_TABLE(of, arm_cc7x_dev_of_match);
MODULE_DEVICE_TABLE(of, arm_cc7x_dev_of_match);
#endif


static struct platform_driver cc7x_driver = {
static struct platform_driver cc7x_driver = {
	.driver = {
	.driver = {
		   .name = "cc7xree",
		   .name = "cc7xree",
#ifdef CONFIG_OF
		   .of_match_table = arm_cc7x_dev_of_match,
		   .of_match_table = arm_cc7x_dev_of_match,
#endif
		   .pm = CC_DRIVER_RUNTIME_PM,
		   .pm = CC_DRIVER_RUNTIME_PM,
	},
	},
	.probe = cc7x_probe,
	.probe = cc7x_probe,