diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/rtmutex-tester.c | 2 | ||||
-rw-r--r-- | kernel/time/clocksource.c | 2 | ||||
-rw-r--r-- | kernel/time/timekeeping.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rtmutex-tester.c b/kernel/rtmutex-tester.c index e3055ba69159..092e4c620af9 100644 --- a/kernel/rtmutex-tester.c +++ b/kernel/rtmutex-tester.c | |||
@@ -394,7 +394,7 @@ static SYSDEV_ATTR(status, 0600, sysfs_test_status, NULL); | |||
394 | static SYSDEV_ATTR(command, 0600, NULL, sysfs_test_command); | 394 | static SYSDEV_ATTR(command, 0600, NULL, sysfs_test_command); |
395 | 395 | ||
396 | static struct sysdev_class rttest_sysclass = { | 396 | static struct sysdev_class rttest_sysclass = { |
397 | set_kset_name("rttest"), | 397 | .name = "rttest", |
398 | }; | 398 | }; |
399 | 399 | ||
400 | static int init_test_thread(int id) | 400 | static int init_test_thread(int id) |
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index c8a9d13874df..8d6125ad2cf0 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c | |||
@@ -441,7 +441,7 @@ static SYSDEV_ATTR(available_clocksource, 0600, | |||
441 | sysfs_show_available_clocksources, NULL); | 441 | sysfs_show_available_clocksources, NULL); |
442 | 442 | ||
443 | static struct sysdev_class clocksource_sysclass = { | 443 | static struct sysdev_class clocksource_sysclass = { |
444 | set_kset_name("clocksource"), | 444 | .name = "clocksource", |
445 | }; | 445 | }; |
446 | 446 | ||
447 | static struct sys_device device_clocksource = { | 447 | static struct sys_device device_clocksource = { |
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index e5e466b27598..ab46ae8c062b 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c | |||
@@ -335,9 +335,9 @@ static int timekeeping_suspend(struct sys_device *dev, pm_message_t state) | |||
335 | 335 | ||
336 | /* sysfs resume/suspend bits for timekeeping */ | 336 | /* sysfs resume/suspend bits for timekeeping */ |
337 | static struct sysdev_class timekeeping_sysclass = { | 337 | static struct sysdev_class timekeeping_sysclass = { |
338 | .name = "timekeeping", | ||
338 | .resume = timekeeping_resume, | 339 | .resume = timekeeping_resume, |
339 | .suspend = timekeeping_suspend, | 340 | .suspend = timekeeping_suspend, |
340 | set_kset_name("timekeeping"), | ||
341 | }; | 341 | }; |
342 | 342 | ||
343 | static struct sys_device device_timer = { | 343 | static struct sys_device device_timer = { |