Skip to content

Commit

Permalink
staging: tidspbridge: use the driver name string
Browse files Browse the repository at this point in the history
Instead of assign it to a global variable which is not used anymore.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Víctor Manuel Jáquez Leal authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent 4f8aae5 commit 3bdb54f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/staging/tidspbridge/rmgr/drv_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
#endif

/* ----------------------------------- Globals */
#define DRIVER_NAME "DspBridge"
#define DSPBRIDGE_VERSION "0.3"
s32 dsp_debug;

Expand Down Expand Up @@ -121,8 +120,6 @@ MODULE_AUTHOR("Texas Instruments");
MODULE_LICENSE("GPL");
MODULE_VERSION(DSPBRIDGE_VERSION);

static char *driver_name = DRIVER_NAME;

/*
* This function is called when an application opens handle to the
* bridge driver.
Expand Down Expand Up @@ -490,7 +487,7 @@ static int __devinit omap34_xx_bridge_probe(struct platform_device *pdev)
goto err1;

/* use 2.6 device model */
err = alloc_chrdev_region(&dev, 0, 1, driver_name);
err = alloc_chrdev_region(&dev, 0, 1, "DspBridge");
if (err) {
pr_err("%s: Can't get major %d\n", __func__, driver_major);
goto err1;
Expand Down

0 comments on commit 3bdb54f

Please sign in to comment.