Changeset b28dabe in mainline


Ignore:
Timestamp:
2012-08-18T14:27:51Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ed54cbf
Parents:
1864948
Message:

isa: Inline isa_init and use structure initializer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    r1864948 rb28dabe  
    199199};
    200200
    201 static ddf_dev_ops_t isa_fun_ops;
     201static ddf_dev_ops_t isa_fun_ops= {
     202        .interfaces[HW_RES_DEV_IFACE] = &isa_fun_hw_res_ops,
     203};
    202204
    203205static int isa_dev_add(ddf_dev_t *dev);
     
    685687}
    686688
    687 
    688 static void isa_init()
    689 {
     689int main(int argc, char *argv[])
     690{
     691        printf(NAME ": HelenOS ISA bus driver\n");
    690692        ddf_log_init(NAME, LVL_ERROR);
    691         isa_fun_ops.interfaces[HW_RES_DEV_IFACE] = &isa_fun_hw_res_ops;
    692 }
    693 
    694 int main(int argc, char *argv[])
    695 {
    696         printf(NAME ": HelenOS ISA bus driver\n");
    697         isa_init();
    698693        return ddf_driver_main(&isa_driver);
    699694}
Note: See TracChangeset for help on using the changeset viewer.