Skip to content

staging: vc_sm_cma: Remove erroneous misc_deregister #2888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#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>
Expand Down Expand Up @@ -72,7 +71,6 @@ struct sm_pde_t {
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 */
Expand Down Expand Up @@ -758,9 +756,6 @@ static int bcm2835_vc_sm_cma_remove(struct platform_device *pdev)
{
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);

Expand Down