diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-02-20 11:01:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-02-25 09:10:40 +0100 |
commit | fa920fa5717b7b7e29cfc8eeb78c5057d860a3e6 (patch) | |
tree | d09bd961400d8018d25270dd10b6dd06986fe681 /include/linux | |
parent | 4695b7bbba2b19011fee0c34236234c7cefde323 (diff) | |
download | barebox-fa920fa5717b7b7e29cfc8eeb78c5057d860a3e6.tar.gz barebox-fa920fa5717b7b7e29cfc8eeb78c5057d860a3e6.tar.xz |
phy: remove unused init_data parameter
Linux has since migrated to a new lookup API that lacks the init_data
parameter. As it's unused in barebox, follow suit.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/phy/phy.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 5d96e02df4..df480d4634 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -49,7 +49,6 @@ struct phy_attrs { * @dev: phy device * @id: id of the phy device * @ops: function pointers for performing phy operations - * @init_data: list of PHY consumers (non-dt only) * @mutex: mutex to protect phy_ops * @init_count: used to protect when the PHY is used by multiple consumers * @power_count: used to protect when the PHY is used by multiple consumers @@ -59,7 +58,6 @@ struct phy { struct device_d dev; int id; const struct phy_ops *ops; - struct phy_init_data *init_data; int init_count; int power_count; struct phy_attrs attrs; @@ -144,8 +142,7 @@ struct phy *of_phy_get(struct device_node *np, const char *con_id); struct phy *of_phy_simple_xlate(struct device_d *dev, struct of_phandle_args *args); struct phy *phy_create(struct device_d *dev, struct device_node *node, - const struct phy_ops *ops, - struct phy_init_data *init_data); + const struct phy_ops *ops); void phy_destroy(struct phy *phy); struct phy_provider *__of_phy_provider_register(struct device_d *dev, struct phy * (*of_xlate)(struct device_d *dev, @@ -225,8 +222,7 @@ static inline struct phy *of_phy_simple_xlate(struct device_d *dev, static inline struct phy *phy_create(struct device_d *dev, struct device_node *node, - const struct phy_ops *ops, - struct phy_init_data *init_data) + const struct phy_ops *ops) { return ERR_PTR(-ENOSYS); } |