////////////////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author     Kuba Sejdak
/// @date       21.08.2016
///
/// @copyright  This file is a part of cosmos OS. All rights reserved.
///
////////////////////////////////////////////////////////////////////////////////////////////////

#include "device.h"

namespace Filesystem {

Device::Device()
    : File(DEVICE_FILE)
    , m_initialized(false)
{
}

void Device::init()
{
    m_initialized = true;
}

bool Device::ioctl(uint32_t, void*)
{
    return true;
}

} // namespace Filesystem

////////////////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author     Kuba Sejdak
/// @date       21.08.2016
///
/// @copyright  This file is a part of cosmos OS. All rights reserved.
///
////////////////////////////////////////////////////////////////////////////////////////////////

#include "device.h"

namespace Filesystem {

Device::Device()
    : File(DEVICE_FILE)
    , m_initialized(false)
{
}

void Device::init()
{
    // Empty.
}

bool Device::ioctl(uint32_t, void*)
{
    return true;
}

} // namespace Filesystem

--- 
+++ 
@@ -20,7 +20,7 @@
 
 void Device::init()
 {
-    // Empty.
+    m_initialized = true;
 }
 
 bool Device::ioctl(uint32_t, void*)
fs: Make default Device::init() set intialized flag.
