Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40bc24dc authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "of: wrap accesses to device_node kobject"

parents 089bf8d4 2d0c481c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -877,7 +877,7 @@ static int device_add_class_symlinks(struct device *dev)
	int error;

	if (of_node) {
		error = sysfs_create_link(&dev->kobj, &of_node->kobj,"of_node");
		error = sysfs_create_link(&dev->kobj, of_node_kobj(of_node), "of_node");
		if (error)
			dev_warn(dev, "Error %d creating of_node link\n",error);
		/* An error here doesn't warrant bringing down the device */
+2 −0
Original line number Diff line number Diff line
@@ -106,6 +106,8 @@ static inline void of_node_init(struct device_node *node)
	node->fwnode.type = FWNODE_OF;
}

#define of_node_kobj(n) (&(n)->kobj)

/* true when node is initialized */
static inline int of_node_is_initialized(struct device_node *node)
{