From: Paul Mundt Date: Wed, 25 Jan 2006 03:52:44 +0000 (-0800) Subject: [PATCH] ARM: OMAP: gpio-switch and retu-rtc kobject_uevent() fixes X-Git-Tag: v2.6.16-omap1~113 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f5c9432bb9bd44968cb785e3bb8aad95d6af3431;p=linux-2.6-omap-h63xx.git [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: Paul Mundt Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/gpio-switch.c b/arch/arm/plat-omap/gpio-switch.c index 1e9025d8f85..cbb1efb409e 100644 --- a/arch/arm/plat-omap/gpio-switch.c +++ b/arch/arm/plat-omap/gpio-switch.c @@ -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); diff --git a/drivers/cbus/retu-rtc.c b/drivers/cbus/retu-rtc.c index e823d7e2dce..6471e7ed0c3 100644 --- a/drivers/cbus/retu-rtc.c +++ b/drivers/cbus/retu-rtc.c @@ -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);