sr: use bdev_check_media_change
[linux-2.6-microblaze.git] / include / linux / sony-laptop.h
index 1a4b773..374d0fd 100644 (file)
 #define SONY_PIC_COMMAND_GETCAMERAROMVERSION   18      /* obsolete */
 #define SONY_PIC_COMMAND_GETCAMERAREVISION     19      /* obsolete */
 
+#if IS_ENABLED(CONFIG_SONY_LAPTOP)
 int sony_pic_camera_command(int command, u8 value);
+#else
+static inline int sony_pic_camera_command(int command, u8 value) { return 0; };
+#endif
 
 #endif /* __KERNEL__ */