}
 
 static int ksz9021_load_values_from_of(struct phy_device *phydev,
-                                      struct device_node *of_node, u16 reg,
-                                      char *field1, char *field2,
-                                      char *field3, char *field4)
+                                      const struct device_node *of_node,
+                                      u16 reg,
+                                      const char *field1, const char *field2,
+                                      const char *field3, const char *field4)
 {
        int val1 = -1;
        int val2 = -2;
 
 static int ksz9021_config_init(struct phy_device *phydev)
 {
-       struct device *dev = &phydev->dev;
-       struct device_node *of_node = dev->of_node;
+       const struct device *dev = &phydev->dev;
+       const struct device_node *of_node = dev->of_node;
 
        if (!of_node && dev->parent->of_node)
                of_node = dev->parent->of_node;
 }
 
 static int ksz9031_of_load_skew_values(struct phy_device *phydev,
-                                      struct device_node *of_node,
+                                      const struct device_node *of_node,
                                       u16 reg, size_t field_sz,
-                                      char *field[], u8 numfields)
+                                      const char *field[], u8 numfields)
 {
        int val[4] = {-1, -2, -3, -4};
        int matches = 0;
 
 static int ksz9031_config_init(struct phy_device *phydev)
 {
-       struct device *dev = &phydev->dev;
-       struct device_node *of_node = dev->of_node;
-       char *clk_skews[2] = {"rxc-skew-ps", "txc-skew-ps"};
-       char *rx_data_skews[4] = {
+       const struct device *dev = &phydev->dev;
+       const struct device_node *of_node = dev->of_node;
+       static const char *clk_skews[2] = {"rxc-skew-ps", "txc-skew-ps"};
+       static const char *rx_data_skews[4] = {
                "rxd0-skew-ps", "rxd1-skew-ps",
                "rxd2-skew-ps", "rxd3-skew-ps"
        };
-       char *tx_data_skews[4] = {
+       static const char *tx_data_skews[4] = {
                "txd0-skew-ps", "txd1-skew-ps",
                "txd2-skew-ps", "txd3-skew-ps"
        };
-       char *control_skews[2] = {"txen-skew-ps", "rxdv-skew-ps"};
+       static const char *control_skews[2] = {"txen-skew-ps", "rxdv-skew-ps"};
 
        if (!of_node && dev->parent->of_node)
                of_node = dev->parent->of_node;
 static int kszphy_probe(struct phy_device *phydev)
 {
        const struct kszphy_type *type = phydev->drv->driver_data;
-       struct device_node *np = phydev->dev.of_node;
+       const struct device_node *np = phydev->dev.of_node;
        struct kszphy_priv *priv;
        struct clk *clk;
        int ret;