Commit e3b2a7b6 authored by Juha Yrjola's avatar Juha Yrjola

CBUS: Make Retu RTC and Tahvo USB drivers use sysfs_notify

Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent 324992f7
...@@ -315,7 +315,7 @@ static void retu_rtca_disable(void) ...@@ -315,7 +315,7 @@ static void retu_rtca_disable(void)
static void retu_rtca_expired(void *data) static void retu_rtca_expired(void *data)
{ {
retu_rtca_disable(); retu_rtca_disable();
kobject_uevent(&retu_rtc_driver.kobj, KOBJ_CHANGE); sysfs_notify(&retu_rtc_driver.kobj, NULL, "alarm_expired");
} }
DECLARE_WORK(retu_rtca_work, retu_rtca_expired, NULL); DECLARE_WORK(retu_rtca_work, retu_rtca_expired, NULL);
......
...@@ -310,7 +310,7 @@ static void check_vbus_state(struct tahvo_usb *tu) ...@@ -310,7 +310,7 @@ static void check_vbus_state(struct tahvo_usb *tu)
prev_state = tu->vbus_state; prev_state = tu->vbus_state;
tu->vbus_state = reg & 0x01; tu->vbus_state = reg & 0x01;
if (prev_state != tu->vbus_state) if (prev_state != tu->vbus_state)
kobject_uevent(&tu->pt_dev->dev.kobj, KOBJ_CHANGE); sysfs_notify(&tu->pt_dev->dev.kobj, NULL, "vbus_state");
} }
static void tahvo_usb_become_host(struct tahvo_usb *tu) static void tahvo_usb_become_host(struct tahvo_usb *tu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment