.data = &r8a7794_pinmux_info,
        },
 #endif
-/* Both r8a7795 entries must be present to make sanity checks work */
-#ifdef CONFIG_PINCTRL_PFC_R8A77950
+/*
+ * Both r8a7795 entries must be present to make sanity checks work, but only
+ * the first entry is actually used.
+ * R-Car H3 ES1.x is matched using soc_device_match() instead.
+ */
+#ifdef CONFIG_PINCTRL_PFC_R8A77951
        {
                .compatible = "renesas,pfc-r8a7795",
-               .data = &r8a77950_pinmux_info,
+               .data = &r8a77951_pinmux_info,
        },
 #endif
-#ifdef CONFIG_PINCTRL_PFC_R8A77951
+#ifdef CONFIG_PINCTRL_PFC_R8A77950
        {
                .compatible = "renesas,pfc-r8a7795",
-               .data = &r8a77951_pinmux_info,
+               .data = &r8a77950_pinmux_info,
        },
 #endif
 #ifdef CONFIG_PINCTRL_PFC_R8A77960
 #ifdef CONFIG_OF
 static const void *sh_pfc_quirk_match(void)
 {
-#if defined(CONFIG_PINCTRL_PFC_R8A77950) || \
-    defined(CONFIG_PINCTRL_PFC_R8A77951)
+#ifdef CONFIG_PINCTRL_PFC_R8A77950
        const struct soc_device_attribute *match;
        static const struct soc_device_attribute quirks[] = {
                {
                        .soc_id = "r8a7795", .revision = "ES1.*",
                        .data = &r8a77950_pinmux_info,
                },
-               {
-                       .soc_id = "r8a7795",
-                       .data = &r8a77951_pinmux_info,
-               },
-
                { /* sentinel */ }
        };
 
        match = soc_device_match(quirks);
        if (match)
-               return match->data ?: ERR_PTR(-ENODEV);
-#endif /* CONFIG_PINCTRL_PFC_R8A77950 || CONFIG_PINCTRL_PFC_R8A77951 */
+               return match->data;
+#endif /* CONFIG_PINCTRL_PFC_R8A77950 */
 
        return NULL;
 }
 #ifdef CONFIG_OF
        if (pdev->dev.of_node) {
                info = sh_pfc_quirk_match();
-               if (IS_ERR(info))
-                       return PTR_ERR(info);
-
                if (!info)
                        info = of_device_get_match_data(&pdev->dev);
        } else
 
 extern const struct sh_pfc_soc_info r8a7792_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7793_pinmux_info;
 extern const struct sh_pfc_soc_info r8a7794_pinmux_info;
-extern const struct sh_pfc_soc_info r8a77950_pinmux_info __weak;
-extern const struct sh_pfc_soc_info r8a77951_pinmux_info __weak;
+extern const struct sh_pfc_soc_info r8a77950_pinmux_info;
+extern const struct sh_pfc_soc_info r8a77951_pinmux_info;
 extern const struct sh_pfc_soc_info r8a77960_pinmux_info;
 extern const struct sh_pfc_soc_info r8a77961_pinmux_info;
 extern const struct sh_pfc_soc_info r8a77965_pinmux_info;