#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/list.h>
-#include <linux/miscdevice.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/of_device.h>
struct sm_state_t {
struct platform_device *pdev;
- struct miscdevice dev;
struct sm_instance *sm_handle; /* Handle for videocore service. */
spinlock_t kernelid_map_lock; /* Spinlock protecting kernelid_map */
{
pr_debug("[%s]: start\n", __func__);
if (sm_inited) {
- /* Remove shared memory device. */
- misc_deregister(&sm_state->dev);
-
/* Remove all proc entries. */
//debugfs_remove_recursive(sm_state->dir_root);