Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mailbox: omap: Remove unused omap_mbox_request_channel() function

This function is not used, remove this function.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>

authored by

Andrew Davis and committed by
Jassi Brar
6faf89a8 182ebe56

-42
-36
drivers/mailbox/omap-mailbox.c
··· 389 389 return mbox; 390 390 } 391 391 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 - 428 392 static struct class omap_mbox_class = { .name = "mbox", }; 429 393 430 394 static int omap_mbox_register(struct omap_mbox_device *mdev)
-6
include/linux/omap-mailbox.h
··· 14 14 #define IRQ_TX ((__force omap_mbox_irq_t) 1) 15 15 #define IRQ_RX ((__force omap_mbox_irq_t) 2) 16 16 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 - 23 17 #endif /* OMAP_MAILBOX_H */