# SPDX-License-Identifier: GPL-2.0
- obj-y = base.o cpu.o device.o platform.o property.o
 -obj-y = base.o device.o module.o platform.o property.o
++obj-y = base.o cpu.o device.o module.o platform.o property.o
  obj-$(CONFIG_OF_KOBJ) += kobj.o
  obj-$(CONFIG_OF_DYNAMIC) += dynamic.o
  obj-$(CONFIG_OF_FLATTREE) += fdt.o
 
  extern int of_n_size_cells(struct device_node *np);
  extern const struct of_device_id *of_match_node(
        const struct of_device_id *matches, const struct device_node *node);
- extern int of_modalias_node(struct device_node *node, char *modalias, int len);
 +extern const void *of_device_get_match_data(const struct device *dev);
+ extern int of_alias_from_compatible(const struct device_node *node, char *alias,
+                                   int len);
  extern void of_print_phandle_args(const char *msg, const struct of_phandle_args *args);
  extern int __of_parse_phandle_with_args(const struct device_node *np,
        const char *list_name, const char *cells_name, int cell_count,
 
        return of_match_device(drv->of_match_table, dev) != NULL;
  }
  
 -extern int of_device_add(struct platform_device *pdev);
 -extern int of_device_register(struct platform_device *ofdev);
 -extern void of_device_unregister(struct platform_device *ofdev);
 -
 -extern const void *of_device_get_match_data(const struct device *dev);
 -
  extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len);
- extern int of_device_request_module(struct device *dev);
  
  extern void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env);
  extern int of_device_uevent_modalias(const struct device *dev, struct kobj_uevent_env *env);