mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
- Fix microblaze compiling due to conflicting merge window changes
- A fix in of_attach_node due to of_find_node_by_path changes - Prevent format strings in DT kobject names -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJToLl9AAoJEMhvYp4jgsXiD2AH/1CEzQ0i7SKZsQOYKXpVwgDC dsOfJo6C7vk3QIi8VvX0i7e97LxcrrQaozQKdO+topS+0yB9wxbW/3BB2r8dkuBX EED64hAZ3qIMH6Iz3H9UbTQ7v7zW3dGyygayMgBlZH+pKC4mMrJKcrQxxdGacKXS a2vaGPnmLuECPxVWMjRCLM3f08rqBUmmW+Ci0QMNl7j3LLfbbL/oX70u0BDaAAWe DkixrPxpDxR6uuDt9dpVDRC5R7SyNJiUYEIFtOiaKmLWqJpvqviSxBk2F4ZIE4sQ yvUfceGjD7CpHdiDFSruCmwQsZgCepZTF2D/LeYZhW0IWCKBW6AXZNlS/YdGXqo= =PuNT -----END PGP SIGNATURE----- Merge tag 'dt-fixes-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux Pull device tree fixes from Rob Herring: - fix microblaze compiling due to conflicting merge window changes - a fix in of_attach_node due to of_find_node_by_path changes - prevent format strings in DT kobject names * tag 'dt-fixes-for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: OF: fix of_find_node_by_path() assumption that of_allnodes is root of: avoid format string parsing in kobject names of/platform: Fix microblaze build failure
This commit is contained in:
commit
e99cfa2d06
2 changed files with 4 additions and 7 deletions
|
@ -227,7 +227,8 @@ static int __of_node_add(struct device_node *np)
|
||||||
np->kobj.kset = of_kset;
|
np->kobj.kset = of_kset;
|
||||||
if (!np->parent) {
|
if (!np->parent) {
|
||||||
/* Nodes without parents are new top level trees */
|
/* Nodes without parents are new top level trees */
|
||||||
rc = kobject_add(&np->kobj, NULL, safe_name(&of_kset->kobj, "base"));
|
rc = kobject_add(&np->kobj, NULL, "%s",
|
||||||
|
safe_name(&of_kset->kobj, "base"));
|
||||||
} else {
|
} else {
|
||||||
name = safe_name(&np->parent->kobj, kbasename(np->full_name));
|
name = safe_name(&np->parent->kobj, kbasename(np->full_name));
|
||||||
if (!name || !name[0])
|
if (!name || !name[0])
|
||||||
|
@ -1960,9 +1961,9 @@ int of_attach_node(struct device_node *np)
|
||||||
|
|
||||||
raw_spin_lock_irqsave(&devtree_lock, flags);
|
raw_spin_lock_irqsave(&devtree_lock, flags);
|
||||||
np->sibling = np->parent->child;
|
np->sibling = np->parent->child;
|
||||||
np->allnext = of_allnodes;
|
np->allnext = np->parent->allnext;
|
||||||
|
np->parent->allnext = np;
|
||||||
np->parent->child = np;
|
np->parent->child = np;
|
||||||
of_allnodes = np;
|
|
||||||
of_node_clear_flag(np, OF_DETACHED);
|
of_node_clear_flag(np, OF_DETACHED);
|
||||||
raw_spin_unlock_irqrestore(&devtree_lock, flags);
|
raw_spin_unlock_irqrestore(&devtree_lock, flags);
|
||||||
|
|
||||||
|
|
|
@ -166,10 +166,6 @@ static void of_dma_configure(struct platform_device *pdev)
|
||||||
int ret;
|
int ret;
|
||||||
struct device *dev = &pdev->dev;
|
struct device *dev = &pdev->dev;
|
||||||
|
|
||||||
#if defined(CONFIG_MICROBLAZE)
|
|
||||||
pdev->archdata.dma_mask = 0xffffffffUL;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set default dma-mask to 32 bit. Drivers are expected to setup
|
* Set default dma-mask to 32 bit. Drivers are expected to setup
|
||||||
* the correct supported dma_mask.
|
* the correct supported dma_mask.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue