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

Commit 5cec26e9 authored by Sachin Kamat's avatar Sachin Kamat Committed by Herbert Xu
Browse files

crypto: picoxcell - Use of_match_ptr() macro



This eliminates having an #ifdef returning NULL for the case
when OF is disabled.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarJamie Iles <jamie@jamieiles.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 264878e6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1688,8 +1688,6 @@ static const struct of_device_id spacc_of_id_table[] = {
	{ .compatible = "picochip,spacc-l2" },
	{}
};
#else /* CONFIG_OF */
#define spacc_of_id_table NULL
#endif /* CONFIG_OF */

static bool spacc_is_compatible(struct platform_device *pdev,
@@ -1874,7 +1872,7 @@ static struct platform_driver spacc_driver = {
#ifdef CONFIG_PM
		.pm	= &spacc_pm_ops,
#endif /* CONFIG_PM */
		.of_match_table	= spacc_of_id_table,
		.of_match_table	= of_match_ptr(spacc_of_id_table),
	},
	.id_table	= spacc_id_table,
};