Skip to content

Commit

Permalink
driver core: Remove unused platform_notify, platform_notify_remove
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bjorn-helgaas authored and gregkh committed Mar 27, 2024
1 parent 4cece76 commit 0bb322b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
8 changes: 0 additions & 8 deletions drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2331,8 +2331,6 @@ static void fw_devlink_link_device(struct device *dev)

/* Device links support end. */

int (*platform_notify)(struct device *dev) = NULL;
int (*platform_notify_remove)(struct device *dev) = NULL;
static struct kobject *dev_kobj;

/* /sys/dev/char */
Expand Down Expand Up @@ -2380,16 +2378,10 @@ static void device_platform_notify(struct device *dev)
acpi_device_notify(dev);

software_node_notify(dev);

if (platform_notify)
platform_notify(dev);
}

static void device_platform_notify_remove(struct device *dev)
{
if (platform_notify_remove)
platform_notify_remove(dev);

software_node_notify_remove(dev);

acpi_device_notify_remove(dev);
Expand Down
11 changes: 0 additions & 11 deletions include/linux/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -1206,17 +1206,6 @@ int __must_check devm_device_add_groups(struct device *dev,
int __must_check devm_device_add_group(struct device *dev,
const struct attribute_group *grp);

/*
* Platform "fixup" functions - allow the platform to have their say
* about devices and actions that the general device layer doesn't
* know about.
*/
/* Notify platform of device discovery */
extern int (*platform_notify)(struct device *dev);

extern int (*platform_notify_remove)(struct device *dev);


/*
* get_device - atomically increment the reference count for the device.
*
Expand Down

0 comments on commit 0bb322b

Please sign in to comment.