Changeset d279e74 in rtems for bsps/arm


Ignore:
Timestamp:
Aug 1, 2018, 4:14:14 AM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
6782771
Parents:
1dec54f9
git-author:
Sebastian Huber <sebastian.huber@…> (08/01/18 04:14:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (08/07/18 05:17:17)
Message:

bsp/smdk2410: Use rtems_blkdev_create()

Update #3358.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/smdk2410/smc/smc.c

    r1dec54f9 rd279e74  
    1515#include <inttypes.h>
    1616
    17 #include "rtems/blkdev.h"
    18 #include "rtems/diskdevs.h"
     17#include <rtems/blkdev.h>
    1918#include "smc.h"
    2019#include <rtems/bspIo.h>
     
    393392{
    394393    rtems_status_code rc;
    395     dev_t dev;
    396394    uint32_t block_num;
    397 
    398     rc = rtems_disk_io_initialize();
    399     if (rc != RTEMS_SUCCESSFUL)
    400         return rc;
    401395
    402396    smc_init();
    403397    block_num = smc_info.blocks << 5;
    404398
    405     dev = rtems_filesystem_make_dev_t(major, 0);
    406     rc = rtems_disk_create_phys(dev, 512, block_num,
    407                                     smc_ioctl, NULL, SMC_DEVICE_NAME);
    408 
    409     return RTEMS_SUCCESSFUL;
    410 }
     399    rc = rtems_blkdev_create(SMC_DEVICE_NAME, 512, block_num, smc_ioctl, NULL);
     400
     401    return rc;
     402}
Note: See TracChangeset for help on using the changeset viewer.