File tree Expand file tree Collapse file tree 3 files changed +10
-26
lines changed Expand file tree Collapse file tree 3 files changed +10
-26
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ int acpi_unbind_one(struct device *dev)
285
285
}
286
286
EXPORT_SYMBOL_GPL (acpi_unbind_one );
287
287
288
- static void acpi_device_notify (struct device * dev )
288
+ void acpi_device_notify (struct device * dev )
289
289
{
290
290
struct acpi_bus_type * type = acpi_get_bus_type (dev );
291
291
struct acpi_device * adev ;
@@ -324,7 +324,7 @@ static void acpi_device_notify(struct device *dev)
324
324
dev_dbg (dev , "No ACPI support\n" );
325
325
}
326
326
327
- static void acpi_device_notify_remove (struct device * dev )
327
+ void acpi_device_notify_remove (struct device * dev )
328
328
{
329
329
struct acpi_device * adev = ACPI_COMPANION (dev );
330
330
struct acpi_bus_type * type ;
@@ -340,18 +340,3 @@ static void acpi_device_notify_remove(struct device *dev)
340
340
341
341
acpi_unbind_one (dev );
342
342
}
343
-
344
- int acpi_platform_notify (struct device * dev , enum kobject_action action )
345
- {
346
- switch (action ) {
347
- case KOBJ_ADD :
348
- acpi_device_notify (dev );
349
- break ;
350
- case KOBJ_REMOVE :
351
- acpi_device_notify_remove (dev );
352
- break ;
353
- default :
354
- break ;
355
- }
356
- return 0 ;
357
- }
Original file line number Diff line number Diff line change @@ -2005,9 +2005,10 @@ device_platform_notify(struct device *dev, enum kobject_action action)
2005
2005
{
2006
2006
int ret ;
2007
2007
2008
- ret = acpi_platform_notify (dev , action );
2009
- if (ret )
2010
- return ret ;
2008
+ if (action == KOBJ_ADD )
2009
+ acpi_device_notify (dev );
2010
+ else if (action == KOBJ_REMOVE )
2011
+ acpi_device_notify_remove (dev );
2011
2012
2012
2013
ret = software_node_notify (dev , action );
2013
2014
if (ret )
Original file line number Diff line number Diff line change @@ -1380,13 +1380,11 @@ static inline int find_acpi_cpu_cache_topology(unsigned int cpu, int level)
1380
1380
#endif
1381
1381
1382
1382
#ifdef CONFIG_ACPI
1383
- extern int acpi_platform_notify (struct device * dev , enum kobject_action action );
1383
+ extern void acpi_device_notify (struct device * dev );
1384
+ extern void acpi_device_notify_remove (struct device * dev );
1384
1385
#else
1385
- static inline int
1386
- acpi_platform_notify (struct device * dev , enum kobject_action action )
1387
- {
1388
- return 0 ;
1389
- }
1386
+ static inline void acpi_device_notify (struct device * dev ) { }
1387
+ static inline void acpi_device_notify_remove (struct device * dev ) { }
1390
1388
#endif
1391
1389
1392
1390
#endif /*_LINUX_ACPI_H*/
You can’t perform that action at this time.
0 commit comments