@@ -72,10 +72,6 @@ applications.
7272   Create device object and related data structures including setting it
7373   up for boot-time initialization.
7474
75- :c:func: `DEVICE_AND_API_INIT() `
76-    Like :c:func: `DEVICE_DEFINE() ` but without support for device power
77-    management.
78- 
7975:c:func: `DEVICE_NAME_GET() `
8076   Converts a device identifier to the global identifier for a device
8177   object.
@@ -175,7 +171,7 @@ of these APIs, and populate an instance of subsystem_api structure:
175171  }; 
176172
177173my_driver_api_funcs `` as the ``api `` argument to
178- ``DEVICE_AND_API_INIT ()
174+ ``DEVICE_DEFINE ()
179175
180176.. note ::
181177
@@ -329,9 +325,9 @@ Then when the particular instance is declared:
329325
330326  static struct my_data_0; 
331327
332-   DEVICE_AND_API_INIT (my_driver_0, MY_DRIVER_0_NAME, my_driver_init, 
333-                        &my_data_0, &my_driver_config_0, POST_KERNEL , 
334-                        MY_DRIVER_0_PRIORITY, &my_api_funcs); 
328+   DEVICE_DEFINE (my_driver_0, MY_DRIVER_0_NAME, my_driver_init, 
329+                 device_pm_control_nop,  &my_data_0, &my_driver_config_0, 
330+                 POST_KERNEL,  MY_DRIVER_0_PRIORITY, &my_api_funcs); 
335331
336332  #endif /* CONFIG_MY_DRIVER_0 */ 
337333
0 commit comments