device: rename SYS_DEFINE_DEVICE()

Rename it to DEVICE_DEFINE() so that it fits in the 'device' namespace.

Change-Id: I3af3a39cf9154359b31d22729d0db9f710cd202b
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-01-26 16:40:37 -05:00 committed by Anas Nashif
commit 0303d8cab9
59 changed files with 96 additions and 96 deletions

View file

@ -203,7 +203,7 @@ struct rtc_dw_dev_config rtc_dev = {
DEVICE_INIT_CONFIG_DEFINE(rtc, CONFIG_RTC_DRV_NAME,
&rtc_dw_init, &rtc_dev);
SYS_DEFINE_DEVICE(rtc, &rtc_runtime, SECONDARY,
DEVICE_DEFINE(rtc, &rtc_runtime, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
int rtc_dw_init(struct device *dev)

View file

@ -95,7 +95,7 @@ static int rtc_qmsi_init(struct device *dev)
DEVICE_INIT_CONFIG_DEFINE(rtc, CONFIG_RTC_DRV_NAME,
&rtc_qmsi_init, NULL);
SYS_DEFINE_DEVICE(rtc, NULL, SECONDARY,
DEVICE_DEFINE(rtc, NULL, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
static struct device *rtc_qmsi_dev = SYS_GET_DEVICE(rtc);