for (i = 0; i < ARRAY_SIZE(bl_calss_device_attributes); i++) class_device_remove_file(&bd->class_dev, &bl_class_device_attributes[i]);