Skip to content

Commit 6faf89a

Browse files
glneoJassi Brar
authored andcommitted
mailbox: omap: Remove unused omap_mbox_request_channel() function
This function is not used, remove this function. Signed-off-by: Andrew Davis <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 182ebe5 commit 6faf89a

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

drivers/mailbox/omap-mailbox.c

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -389,42 +389,6 @@ static struct omap_mbox *omap_mbox_device_find(struct omap_mbox_device *mdev,
389389
return mbox;
390390
}
391391

392-
struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl,
393-
const char *chan_name)
394-
{
395-
struct device *dev = cl->dev;
396-
struct omap_mbox *mbox = NULL;
397-
struct omap_mbox_device *mdev;
398-
int ret;
399-
400-
if (!dev)
401-
return ERR_PTR(-ENODEV);
402-
403-
if (dev->of_node) {
404-
pr_err("%s: please use mbox_request_channel(), this API is supported only for OMAP non-DT usage\n",
405-
__func__);
406-
return ERR_PTR(-ENODEV);
407-
}
408-
409-
mutex_lock(&omap_mbox_devices_lock);
410-
list_for_each_entry(mdev, &omap_mbox_devices, elem) {
411-
mbox = omap_mbox_device_find(mdev, chan_name);
412-
if (mbox)
413-
break;
414-
}
415-
mutex_unlock(&omap_mbox_devices_lock);
416-
417-
if (!mbox || !mbox->chan)
418-
return ERR_PTR(-ENOENT);
419-
420-
ret = mbox_bind_client(mbox->chan, cl);
421-
if (ret)
422-
return ERR_PTR(ret);
423-
424-
return mbox->chan;
425-
}
426-
EXPORT_SYMBOL(omap_mbox_request_channel);
427-
428392
static struct class omap_mbox_class = { .name = "mbox", };
429393

430394
static int omap_mbox_register(struct omap_mbox_device *mdev)

include/linux/omap-mailbox.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,4 @@ typedef int __bitwise omap_mbox_irq_t;
1414
#define IRQ_TX ((__force omap_mbox_irq_t) 1)
1515
#define IRQ_RX ((__force omap_mbox_irq_t) 2)
1616

17-
struct mbox_chan;
18-
struct mbox_client;
19-
20-
struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl,
21-
const char *chan_name);
22-
2317
#endif /* OMAP_MAILBOX_H */

0 commit comments

Comments
 (0)