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

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'mailbox-devel' of git://git.linaro.org/landing-teams/working/fujitsu/integration

Pull mailbox fixes from Jassi Brar:

- fix getting element from the pcc-channels array by simply indexing
into it

- prevent building mailbox-test driver for archs that don't have IOMEM

* 'mailbox-devel' of git://git.linaro.org/landing-teams/working/fujitsu/integration:
mailbox: Fix dependencies for !HAS_IOMEM archs
mailbox: pcc: fix channel calculation in get_pcc_channel()

+2 -7
+1
drivers/mailbox/Kconfig
··· 81 81 config MAILBOX_TEST 82 82 tristate "Mailbox Test Client" 83 83 depends on OF 84 + depends on HAS_IOMEM 84 85 help 85 86 Test client to help with testing new Controller driver 86 87 implementations.
+1 -7
drivers/mailbox/pcc.c
··· 81 81 */ 82 82 static struct mbox_chan *get_pcc_channel(int id) 83 83 { 84 - struct mbox_chan *pcc_chan; 85 - 86 84 if (id < 0 || id > pcc_mbox_ctrl.num_chans) 87 85 return ERR_PTR(-ENOENT); 88 86 89 - pcc_chan = (struct mbox_chan *) 90 - (unsigned long) pcc_mbox_channels + 91 - (id * sizeof(*pcc_chan)); 92 - 93 - return pcc_chan; 87 + return &pcc_mbox_channels[id]; 94 88 } 95 89 96 90 /**