Skip to content

Commit

Permalink
staging: ccree: drop ifdef CONFIG_OF in code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gilad Ben-Yossef authored and Greg Kroah-Hartman committed Dec 19, 2017
1 parent 82a708e commit 16bcccb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/ccree/ssi_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 16bcccb

Please sign in to comment.