device-dax: introduce 'struct dev_dax' typed-driver operations
[linux-2.6-microblaze.git] / drivers / dax / bus.h
index 44592a8..da27ea7 100644 (file)
@@ -38,6 +38,8 @@ struct dax_device_driver {
        struct device_driver drv;
        struct list_head ids;
        int match_always;
+       int (*probe)(struct dev_dax *dev);
+       int (*remove)(struct dev_dax *dev);
 };
 
 int __dax_driver_register(struct dax_device_driver *dax_drv,
@@ -48,7 +50,7 @@ void dax_driver_unregister(struct dax_device_driver *dax_drv);
 void kill_dev_dax(struct dev_dax *dev_dax);
 
 #if IS_ENABLED(CONFIG_DEV_DAX_PMEM_COMPAT)
-int dev_dax_probe(struct device *dev);
+int dev_dax_probe(struct dev_dax *dev_dax);
 #endif
 
 /*