pci: remove explicit setting of my-self from PCI devices
Since the correct current instance is now being set during probe, there is no need to explicitly set it whilst creating the device. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
This commit is contained in:
parent
c79f534243
commit
c8afd6a9f9
|
@ -653,10 +653,6 @@ ob_lsi_init(const char *path, uint64_t mmio, uint64_t ram)
|
|||
global_lsi = lsi;
|
||||
|
||||
/* Buffer for commands */
|
||||
fword("my-self");
|
||||
push_str(path);
|
||||
feval("open-dev to my-self");
|
||||
|
||||
PUSH(0x1000);
|
||||
feval("dma-alloc");
|
||||
addr = POP();
|
||||
|
@ -695,7 +691,6 @@ ob_lsi_init(const char *path, uint64_t mmio, uint64_t ram)
|
|||
|
||||
set_int_property(ph, "#address-cells", 1);
|
||||
set_int_property(ph, "#size-cells", 0);
|
||||
feval("to my-self");
|
||||
|
||||
/* Initialise SCRIPTS */
|
||||
lsi->mmio = (uint8_t *)(uint32_t)mmio;
|
||||
|
|
|
@ -504,9 +504,6 @@ void ob_virtio_init(const char *path, const char *dev_name, uint64_t common_cfg,
|
|||
VDev *vdev, **_vdev;
|
||||
|
||||
/* Open ob_virtio */
|
||||
fword("my-self");
|
||||
push_str(path);
|
||||
feval("open-dev to my-self");
|
||||
BIND_NODE_METHODS(get_cur_dev(), ob_virtio);
|
||||
|
||||
ph = find_ih_method("vdev", my_self());
|
||||
|
@ -532,7 +529,6 @@ void ob_virtio_init(const char *path, const char *dev_name, uint64_t common_cfg,
|
|||
vdev->ring_area = cell2pointer(addr);
|
||||
|
||||
*_vdev = vdev;
|
||||
feval("to my-self");
|
||||
|
||||
fword("new-device");
|
||||
push_str("disk");
|
||||
|
|
Loading…
Reference in New Issue