diff mbox

Define 'open' and 'close' words of the /aliases nodes right from the start

Message ID 1500471465-20805-1-git-send-email-thuth@redhat.com
State Accepted
Headers show

Commit Message

Thomas Huth July 19, 2017, 1:37 p.m. UTC
It's much easier to do this when we create the node instead of
looking up the device node again later in each of the boards.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 board-js2x/slof/tree.fs | 5 -----
 board-qemu/slof/tree.fs | 5 -----
 slof/fs/root.fs         | 2 ++
 3 files changed, 2 insertions(+), 10 deletions(-)

Comments

Alexey Kardashevskiy July 20, 2017, 5:37 a.m. UTC | #1
On 19/07/17 23:37, Thomas Huth wrote:
> It's much easier to do this when we create the node instead of
> looking up the device node again later in each of the boards.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Thanks, applied.

> ---
>  board-js2x/slof/tree.fs | 5 -----
>  board-qemu/slof/tree.fs | 5 -----
>  slof/fs/root.fs         | 2 ++
>  3 files changed, 2 insertions(+), 10 deletions(-)
> 
> diff --git a/board-js2x/slof/tree.fs b/board-js2x/slof/tree.fs
> index 1f924ea..10946ac 100644
> --- a/board-js2x/slof/tree.fs
> +++ b/board-js2x/slof/tree.fs
> @@ -216,11 +216,6 @@ s" /openprom" find-device
>     THEN
>  device-end
>  
> -s" /aliases" find-device
> -   : open  true ;
> -   : close ;
> -device-end
> -
>  s" /mmu" open-dev encode-int s" mmu" set-chosen
>  
>  #include "available.fs"
> diff --git a/board-qemu/slof/tree.fs b/board-qemu/slof/tree.fs
> index e71743b..cc35fa3 100644
> --- a/board-qemu/slof/tree.fs
> +++ b/board-qemu/slof/tree.fs
> @@ -173,11 +173,6 @@ s" /openprom" find-device
>     0 0 s" relative-addressing" property
>  device-end
>  
> -s" /aliases" find-device
> -   : open  true ;
> -   : close ;
> -device-end
> -
>  s" /mmu" open-dev encode-int s" mmu" set-chosen
>  
>  #include "available.fs"
> diff --git a/slof/fs/root.fs b/slof/fs/root.fs
> index 952b00e..44d087a 100644
> --- a/slof/fs/root.fs
> +++ b/slof/fs/root.fs
> @@ -57,6 +57,8 @@ THEN
>  \ Create /aliases
>  new-device
>      s" aliases" device-name
> +   : open  true ;
> +   : close ;
>  finish-device
>  
>  \ Create /options
>
diff mbox

Patch

diff --git a/board-js2x/slof/tree.fs b/board-js2x/slof/tree.fs
index 1f924ea..10946ac 100644
--- a/board-js2x/slof/tree.fs
+++ b/board-js2x/slof/tree.fs
@@ -216,11 +216,6 @@  s" /openprom" find-device
    THEN
 device-end
 
-s" /aliases" find-device
-   : open  true ;
-   : close ;
-device-end
-
 s" /mmu" open-dev encode-int s" mmu" set-chosen
 
 #include "available.fs"
diff --git a/board-qemu/slof/tree.fs b/board-qemu/slof/tree.fs
index e71743b..cc35fa3 100644
--- a/board-qemu/slof/tree.fs
+++ b/board-qemu/slof/tree.fs
@@ -173,11 +173,6 @@  s" /openprom" find-device
    0 0 s" relative-addressing" property
 device-end
 
-s" /aliases" find-device
-   : open  true ;
-   : close ;
-device-end
-
 s" /mmu" open-dev encode-int s" mmu" set-chosen
 
 #include "available.fs"
diff --git a/slof/fs/root.fs b/slof/fs/root.fs
index 952b00e..44d087a 100644
--- a/slof/fs/root.fs
+++ b/slof/fs/root.fs
@@ -57,6 +57,8 @@  THEN
 \ Create /aliases
 new-device
     s" aliases" device-name
+   : open  true ;
+   : close ;
 finish-device
 
 \ Create /options