mfd: core: Remove support for dangling device properties
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 1 Mar 2021 14:42:22 +0000 (16:42 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 15:06:14 +0000 (16:06 +0100)
From now on only accepting complete software nodes.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/mfd-core.c
include/linux/mfd/core.h

index e24008b..6dcff4b 100644 (file)
@@ -238,12 +238,6 @@ static int mfd_add_device(struct device *parent, int id,
                        goto fail_of_entry;
        }
 
-       if (cell->properties) {
-               ret = platform_device_add_properties(pdev, cell->properties);
-               if (ret)
-                       goto fail_of_entry;
-       }
-
        if (cell->swnode) {
                ret = device_add_software_node(&pdev->dev, cell->swnode);
                if (ret)
index 9ec5991..0bc7cba 100644 (file)
@@ -51,7 +51,6 @@
 
 struct irq_domain;
 struct software_node;
-struct property_entry;
 
 /* Matches ACPI PNP id, either _HID or _CID, or ACPI _ADR */
 struct mfd_cell_acpi_match {
@@ -82,9 +81,6 @@ struct mfd_cell {
        /* Software node for the device. */
        const struct software_node *swnode;
 
-       /* device properties passed to the sub devices drivers */
-       const struct property_entry *properties;
-
        /*
         * Device Tree compatible string
         * See: Documentation/devicetree/usage-model.rst Chapter 2.2 for details