]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/mfd/cros_ec_dev.c
Merge tag 'nios2-v5.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/lftan...
[mirror_ubuntu-jammy-kernel.git] / drivers / mfd / cros_ec_dev.c
index 39e611695053629114e346d27090e936aa539ea8..32c2b912b58b257dff03085e2bbfc6b22d1b5ae3 100644 (file)
@@ -211,7 +211,7 @@ static int ec_device_probe(struct platform_device *pdev)
         * explicitly added on platforms that don't have the PD notifier ACPI
         * device entry defined.
         */
-       if (IS_ENABLED(CONFIG_OF)) {
+       if (IS_ENABLED(CONFIG_OF) && ec->ec_dev->dev->of_node) {
                if (cros_ec_check_features(ec, EC_FEATURE_USB_PD)) {
                        retval = mfd_add_hotplug_devices(ec->dev,
                                        cros_usbpd_notify_cells,