diff options
| author | Meco Jianting Man <[email protected]> | 2021-03-20 19:00:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-20 19:00:54 +0800 |
| commit | 061182271fbf02cf5c3410e3c8083a062a31a2b3 (patch) | |
| tree | ed268633290165d616970d974d5c773e20a8478d /src | |
| parent | 295b95cd7529bc9b85b4fb8ee8b37c62811ffbc8 (diff) | |
| parent | de1d079ecefe18caefa1bce500862ae729433d88 (diff) | |
Merge pull request #29 from RT-Thread/master
p
Diffstat (limited to 'src')
| -rw-r--r-- | src/device.c | 14 | ||||
| -rw-r--r-- | src/kservice.c | 4 |
2 files changed, 3 insertions, 15 deletions
diff --git a/src/device.c b/src/device.c index 388c2ecf12..50b83c7692 100644 --- a/src/device.c +++ b/src/device.c @@ -12,6 +12,7 @@ * 2012-12-25 Bernard return RT_EOK if the device interface not exist. * 2013-07-09 Grissiom add ref_count support * 2016-04-02 Bernard fix the open_flag initialization issue. + * 2021-03-19 Meco Man remove rt_device_init_all() */ #include <rtthread.h> @@ -90,19 +91,6 @@ rt_err_t rt_device_unregister(rt_device_t dev) RTM_EXPORT(rt_device_unregister); /** - * This function initializes all registered device driver - * - * @return the error code, RT_EOK on successfully. - * - * @deprecated since 1.2.x, this function is not needed because the initialization - * of a device is performed when application opens it. - */ -rt_err_t rt_device_init_all(void) -{ - return RT_EOK; -} - -/** * This function finds a device driver by specified name. * * @param name the device driver's name diff --git a/src/kservice.c b/src/kservice.c index 79ee4c2b9d..c08dc68314 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -146,10 +146,10 @@ RT_WEAK void *rt_memset(void *s, int c, rt_ubase_t count) if (!TOO_SMALL(count) && !UNALIGNED(s)) { - /* If we get this far, we know that n is large and m is word-aligned. */ + /* If we get this far, we know that count is large and s is word-aligned. */ aligned_addr = (unsigned long *)s; - /* Store D into each char sized location in BUFFER so that + /* Store d into each char sized location in buffer so that * we can set large blocks quickly. */ if (LBLOCKSIZE == 4) |
