Skip to content

Commit 0bb322b

Browse files
bjorn-helgaasgregkh
authored andcommitted
driver core: Remove unused platform_notify, platform_notify_remove
The "platform_notify" and "platform_notify_remove" hooks have been unused since 00ba935 ("ARM: ixp4xx: Drop custom DMA coherency and bouncing"). Remove "platform_notify" and "platform_notify_remove". No functional change intended. Signed-off-by: Bjorn Helgaas <[email protected]> Cc: Heikki Krogerus <[email protected]> Cc: Linus Walleij <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 4cece76 commit 0bb322b

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

drivers/base/core.c

-8
Original file line numberDiff line numberDiff line change
@@ -2331,8 +2331,6 @@ static void fw_devlink_link_device(struct device *dev)
23312331

23322332
/* Device links support end. */
23332333

2334-
int (*platform_notify)(struct device *dev) = NULL;
2335-
int (*platform_notify_remove)(struct device *dev) = NULL;
23362334
static struct kobject *dev_kobj;
23372335

23382336
/* /sys/dev/char */
@@ -2380,16 +2378,10 @@ static void device_platform_notify(struct device *dev)
23802378
acpi_device_notify(dev);
23812379

23822380
software_node_notify(dev);
2383-
2384-
if (platform_notify)
2385-
platform_notify(dev);
23862381
}
23872382

23882383
static void device_platform_notify_remove(struct device *dev)
23892384
{
2390-
if (platform_notify_remove)
2391-
platform_notify_remove(dev);
2392-
23932385
software_node_notify_remove(dev);
23942386

23952387
acpi_device_notify_remove(dev);

include/linux/device.h

-11
Original file line numberDiff line numberDiff line change
@@ -1206,17 +1206,6 @@ int __must_check devm_device_add_groups(struct device *dev,
12061206
int __must_check devm_device_add_group(struct device *dev,
12071207
const struct attribute_group *grp);
12081208

1209-
/*
1210-
* Platform "fixup" functions - allow the platform to have their say
1211-
* about devices and actions that the general device layer doesn't
1212-
* know about.
1213-
*/
1214-
/* Notify platform of device discovery */
1215-
extern int (*platform_notify)(struct device *dev);
1216-
1217-
extern int (*platform_notify_remove)(struct device *dev);
1218-
1219-
12201209
/*
12211210
* get_device - atomically increment the reference count for the device.
12221211
*

0 commit comments

Comments
 (0)