summaryrefslogtreecommitdiff
path: root/src/base/loader/dtb_object.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/loader/dtb_object.hh')
-rw-r--r--src/base/loader/dtb_object.hh6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/base/loader/dtb_object.hh b/src/base/loader/dtb_object.hh
index 74bb52d44..451b52a4c 100644
--- a/src/base/loader/dtb_object.hh
+++ b/src/base/loader/dtb_object.hh
@@ -41,8 +41,7 @@
class DtbObject : public ObjectFile
{
protected:
- DtbObject(const std::string &_filename, int _fd,
- size_t _len, uint8_t *_data,
+ DtbObject(const std::string &_filename, size_t _len, uint8_t *_data,
Arch _arch, OpSys _opSys);
/** Bool marking if this dtb file has replaced the original
@@ -75,12 +74,11 @@ class DtbObject : public ObjectFile
/** Static function that tries to load file as a
* flattened device tree blob.
* @param fname path to file
- * @param fd file descriptor of object file
* @param len length of file
* @param data mmap'ed data buffer containing file contents
* @return ObjectFile representing closest match of file type
*/
- static ObjectFile *tryFile(const std::string &fname, int fd,
+ static ObjectFile *tryFile(const std::string &fname,
size_t len, uint8_t *data);
};