aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/gasket/gasket_core.h
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2018-08-05 13:07:43 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-08 11:20:07 +0200
commit4420ea9366a5df61cbb0bb2ad827ff6391904f56 (patch)
tree110d25d42c1eb4c6d681f006fe70169cbdd02d68 /drivers/staging/gasket/gasket_core.h
parentstaging: gasket: apex: enable/disable gasket device from apex (diff)
downloadlinux-dev-4420ea9366a5df61cbb0bb2ad827ff6391904f56.tar.xz
linux-dev-4420ea9366a5df61cbb0bb2ad827ff6391904f56.zip
staging: gasket: core: delete device add and remove callbacks
Gasket device drivers are now in charge of orchestrating the device add and removal sequences, so the callbacks from the framework to the device drivers for these events are no longer needed. Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gasket/gasket_core.h')
-rw-r--r--drivers/staging/gasket/gasket_core.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/staging/gasket/gasket_core.h b/drivers/staging/gasket/gasket_core.h
index 9c143ebeba45..0ef0a2640f0f 100644
--- a/drivers/staging/gasket/gasket_core.h
+++ b/drivers/staging/gasket/gasket_core.h
@@ -302,12 +302,6 @@ struct gasket_dev {
/* Hardware revision value for this device. */
int hardware_revision;
- /*
- * Device-specific data; allocated in gasket_driver_desc.add_dev_cb()
- * and freed in gasket_driver_desc.remove_dev_cb().
- */
- void *cb_data;
-
/* Protects access to per-device data (i.e. this structure). */
struct mutex mutex;
@@ -416,29 +410,6 @@ struct gasket_driver_desc {
/* Driver callback functions - all may be NULL */
/*
- * add_dev_cb: Callback when a device is found.
- * @dev: The gasket_dev struct for this driver instance.
- *
- * This callback should initialize the device-specific cb_data.
- * Called when a device is found by the driver,
- * before any BAR ranges have been mapped. If this call fails (returns
- * nonzero), remove_dev_cb will be called.
- *
- */
- int (*add_dev_cb)(struct gasket_dev *dev);
-
- /*
- * remove_dev_cb: Callback for when a device is removed from the system.
- * @dev: The gasket_dev struct for this driver instance.
- *
- * This callback should free data allocated in add_dev_cb.
- * Called immediately before a device is unregistered by the driver.
- * All framework-managed resources will have been cleaned up by the time
- * this callback is invoked (PCI BARs, character devices, ...).
- */
- int (*remove_dev_cb)(struct gasket_dev *dev);
-
- /*
* device_open_cb: Callback for when a device node is opened in write
* mode.
* @dev: The gasket_dev struct for this driver instance.