md is the last driver using the legacy media_changed method. Switch it over to (not so) new ->clear_events approach, which also removes the need for the ->revalidate_disk method.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -1781,8 +1781,6 @@ struct block_device_operations { · 1780 unmodified lines | ||
| 1781 | 1781 | int (*compat_ioctl) (struct block_device *, fmode_t, unsigned, unsigned long); |
| 1782 | 1782 | unsigned int (*check_events) (struct gendisk *disk, |
| 1783 | 1783 | unsigned int clearing); |
| 1784 | − /* ->media_changed() is DEPRECATED, use ->check_events() instead */ | |
| 1785 | − int (*media_changed) (struct gendisk *); | |
| 1786 | 1784 | void (*unlock_native_capacity) (struct gendisk *); |
| 1787 | 1785 | int (*revalidate_disk) (struct gendisk *); |
| 1788 | 1786 | int (*getgeo)(struct block_device *, struct hd_geometry *); |