mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[SPARC]: Make sure dev_archdata is filled in for all devices.
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
e865f3e6f4
commit
3d6e470236
6 changed files with 30 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ struct sbus_bus *sbus_root;
|
|||
|
||||
static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sdev)
|
||||
{
|
||||
struct dev_archdata *sd;
|
||||
unsigned long base;
|
||||
const void *pval;
|
||||
int len, err;
|
||||
|
|
@ -67,6 +68,10 @@ static void __init fill_sbus_device(struct device_node *dp, struct sbus_dev *sde
|
|||
|
||||
sbus_fill_device_irq(sdev);
|
||||
|
||||
sd = &sdev->ofdev.dev.archdata;
|
||||
sd->prom_node = dp;
|
||||
sd->op = &sdev->ofdev;
|
||||
|
||||
sdev->ofdev.node = dp;
|
||||
if (sdev->parent)
|
||||
sdev->ofdev.dev.parent = &sdev->parent->ofdev.dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue