}
     #endif
     
-- --static int
-- --device_platform_notify(struct device *dev, enum kobject_action action)
++ ++static void device_platform_notify(struct device *dev)
     {
-- --   int ret;
 - --
 - --   ret = acpi_platform_notify(dev, action);
 - --   if (ret)
 - --           return ret;
++ ++   acpi_device_notify(dev);
     
-       ret = acpi_platform_notify(dev, action);
 - --   ret = software_node_notify(dev, action);
-- --   if (ret)
-- --           return ret;
++ ++   software_node_notify(dev);
     
-       ret = software_node_notify(dev, action);
-       if (ret)
-               return ret;
-    
-- --   if (platform_notify && action == KOBJ_ADD)
++ ++   if (platform_notify)
                platform_notify(dev);
-- --   else if (platform_notify_remove && action == KOBJ_REMOVE)
++ ++}
++ ++
++ ++static void device_platform_notify_remove(struct device *dev)
++ ++{
++ ++   acpi_device_notify_remove(dev);
++ ++
++ ++   software_node_notify_remove(dev);
++ ++
++ ++   if (platform_notify_remove)
                platform_notify_remove(dev);
-- --   return 0;
     }
     
     /**