Per Peter [1], the lockdep API has native support for all the use cases lockdep_mutex was attempting to enable. Now that all lockdep_mutex users have been converted to those APIs, drop this lock.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -400,8 +400,6 @@ struct dev_msi_info { · 399 unmodified lines | ||
| 400 | 400 | * This identifies the device type and carries type-specific |
| 401 | 401 | * information. |
| 402 | 402 | * @mutex: Mutex to synchronize calls to its driver. |
| 403 | − * @lockdep_mutex: An optional debug lock that a subsystem can use as a | |
| 404 | − * peer lock to gain localized lockdep coverage of the device_lock. | |
| 405 | 403 | * @bus: Type of bus device is on. |
| 406 | 404 | * @driver: Which driver has allocated this |
| 407 | 405 | * @platform_data: Platform data specific to the device. |
| @@ -499,9 +497,6 @@ struct device { · 91 unmodified lines | ||
| 499 | 497 | core doesn't touch it */ |
| 500 | 498 | void *driver_data; /* Driver data, set and get with |
| 501 | 499 | dev_set_drvdata/dev_get_drvdata */ |
| 502 | −#ifdef CONFIG_PROVE_LOCKING | |
| 503 | − struct mutex lockdep_mutex; | |
| 504 | −#endif | |
| 505 | 500 | struct mutex mutex; /* mutex to synchronize calls to |
| 506 | 501 | * its driver. |
| 507 | 502 | */ |