Loading drivers/crypto/s5p-sss.c +3 −6 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/scatterlist.h> Loading Loading @@ -424,13 +425,9 @@ MODULE_DEVICE_TABLE(of, s5p_sss_dt_match); static inline const struct samsung_aes_variant *find_s5p_sss_version (const struct platform_device *pdev) { if (IS_ENABLED(CONFIG_OF) && (pdev->dev.of_node)) { const struct of_device_id *match; if (IS_ENABLED(CONFIG_OF) && (pdev->dev.of_node)) return of_device_get_match_data(&pdev->dev); match = of_match_node(s5p_sss_dt_match, pdev->dev.of_node); return (const struct samsung_aes_variant *)match->data; } return (const struct samsung_aes_variant *) platform_get_device_id(pdev)->driver_data; } Loading Loading
drivers/crypto/s5p-sss.c +3 −6 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/platform_device.h> #include <linux/scatterlist.h> Loading Loading @@ -424,13 +425,9 @@ MODULE_DEVICE_TABLE(of, s5p_sss_dt_match); static inline const struct samsung_aes_variant *find_s5p_sss_version (const struct platform_device *pdev) { if (IS_ENABLED(CONFIG_OF) && (pdev->dev.of_node)) { const struct of_device_id *match; if (IS_ENABLED(CONFIG_OF) && (pdev->dev.of_node)) return of_device_get_match_data(&pdev->dev); match = of_match_node(s5p_sss_dt_match, pdev->dev.of_node); return (const struct samsung_aes_variant *)match->data; } return (const struct samsung_aes_variant *) platform_get_device_id(pdev)->driver_data; } Loading