Commit 71b3cd2d authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: link serio ports to their parent devices in ambakmi,

       gscps2, pcips2 and sa1111ps2 drivers
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent b9a20b83
...@@ -141,6 +141,7 @@ static int amba_kmi_probe(struct amba_device *dev, void *id) ...@@ -141,6 +141,7 @@ static int amba_kmi_probe(struct amba_device *dev, void *id)
strlcpy(io->name, dev->dev.bus_id, sizeof(io->name)); strlcpy(io->name, dev->dev.bus_id, sizeof(io->name));
strlcpy(io->phys, dev->dev.bus_id, sizeof(io->phys)); strlcpy(io->phys, dev->dev.bus_id, sizeof(io->phys));
io->port_data = kmi; io->port_data = kmi;
io->dev.parent = &dev->dev;
kmi->io = io; kmi->io = io;
kmi->base = ioremap(dev->res.start, KMI_SIZE); kmi->base = ioremap(dev->res.start, KMI_SIZE);
......
...@@ -385,6 +385,7 @@ static int __init gscps2_probe(struct parisc_device *dev) ...@@ -385,6 +385,7 @@ static int __init gscps2_probe(struct parisc_device *dev)
serio->open = gscps2_open; serio->open = gscps2_open;
serio->close = gscps2_close; serio->close = gscps2_close;
serio->port_data = ps2port; serio->port_data = ps2port;
serio->dev.parent = &dev->dev;
list_add_tail(&ps2port->node, &ps2port_list); list_add_tail(&ps2port->node, &ps2port_list);
......
...@@ -159,6 +159,7 @@ static int __devinit pcips2_probe(struct pci_dev *dev, const struct pci_device_i ...@@ -159,6 +159,7 @@ static int __devinit pcips2_probe(struct pci_dev *dev, const struct pci_device_i
strlcpy(serio->name, pci_name(dev), sizeof(serio->name)); strlcpy(serio->name, pci_name(dev), sizeof(serio->name));
strlcpy(serio->phys, dev->dev.bus_id, sizeof(serio->phys)); strlcpy(serio->phys, dev->dev.bus_id, sizeof(serio->phys));
serio->port_data = ps2if; serio->port_data = ps2if;
serio->dev.parent = &dev->dev;
ps2if->io = serio; ps2if->io = serio;
ps2if->dev = dev; ps2if->dev = dev;
ps2if->base = pci_resource_start(dev, 0); ps2if->base = pci_resource_start(dev, 0);
......
...@@ -252,6 +252,7 @@ static int ps2_probe(struct sa1111_dev *dev) ...@@ -252,6 +252,7 @@ static int ps2_probe(struct sa1111_dev *dev)
strlcpy(serio->name, dev->dev.bus_id, sizeof(serio->name)); strlcpy(serio->name, dev->dev.bus_id, sizeof(serio->name));
strlcpy(serio->phys, dev->dev.bus_id, sizeof(serio->phys)); strlcpy(serio->phys, dev->dev.bus_id, sizeof(serio->phys));
serio->port_data = ps2if; serio->port_data = ps2if;
serio->dev.parent = &dev->dev;
ps2if->io = serio; ps2if->io = serio;
ps2if->dev = dev; ps2if->dev = dev;
sa1111_set_drvdata(dev, ps2if); sa1111_set_drvdata(dev, ps2if);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment