Commit f5c9432b authored by Paul Mundt's avatar Paul Mundt Committed by Tony Lindgren

[PATCH] ARM: OMAP: gpio-switch and retu-rtc kobject_uevent() fixes

This updates gpio-switch and retu-rtc for the kobject_uevent() API
changes.
Signed-off-by: default avatarPaul Mundt <paul.mundt@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 557a9311
......@@ -129,11 +129,9 @@ static void gpio_sw_handler(void *data)
return;
if (sw->type == OMAP_GPIO_SWITCH_TYPE_CONNECTION)
kobject_uevent(&sw->pdev.dev.kobj, KOBJ_CHANGE,
&dev_attr_connection_switch.attr);
kobject_uevent(&sw->pdev.dev.kobj, KOBJ_CHANGE);
else
kobject_uevent(&sw->pdev.dev.kobj, KOBJ_CHANGE,
&dev_attr_cover_switch.attr);
kobject_uevent(&sw->pdev.dev.kobj, KOBJ_CHANGE);
sw->state = state;
if (omap_get_gpio_datain(sw->gpio))
set_irq_type(OMAP_GPIO_IRQ(sw->gpio), IRQT_FALLING);
......
......@@ -315,8 +315,7 @@ static void retu_rtca_disable(void)
static void retu_rtca_expired(void *data)
{
retu_rtca_disable();
kobject_uevent(&retu_rtc_driver.kobj, KOBJ_CHANGE,
&dev_attr_alarm_expired.attr);
kobject_uevent(&retu_rtc_driver.kobj, KOBJ_CHANGE);
}
DECLARE_WORK(retu_rtca_work, retu_rtca_expired, NULL);
......
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