blob: dba388e2e429d62c5932f3a6d4bcdd7ef4caac3c [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0
#include "mali_pixel_mod.h"
#include <linux/module.h>
MODULE_SOFTDEP("pre: pixel_stat_sysfs");
extern struct kobject *pixel_stat_kobj;
struct kobject *pixel_stat_gpu_kobj;
int mali_pixel_init_pixel_stats(void)
{
struct kobject *pixel_stat = pixel_stat_kobj;
if (pixel_stat_kobj == NULL)
return -EPROBE_DEFER;
pixel_stat_gpu_kobj = kobject_create_and_add("gpu", pixel_stat);
if (!pixel_stat_gpu_kobj)
return -ENOMEM;
return 0;
}