forked from Minki/linux
mvebu drivers for 5.6 (part 1)
- Various cleanup on the following drivers: - Turris Mox rWTM firmware - Moxtet bus - Armada 37xx rWTM mailbox - Marvell EBU Device Bus -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQYqXDMF3cvSLY+g9cLBhiOFHI71QUCXhn9YQAKCRALBhiOFHI7 1eaRAJ49SHCftal9aCuOrcl2/w4OBmB3awCffwAbLS0fTC/2ynqOshjavVbzmes= =JM34 -----END PGP SIGNATURE----- Merge tag 'mvebu-drivers-5.6-1' of git://git.infradead.org/linux-mvebu into arm/drivers mvebu drivers for 5.6 (part 1) - Various cleanup on the following drivers: - Turris Mox rWTM firmware - Moxtet bus - Armada 37xx rWTM mailbox - Marvell EBU Device Bus * tag 'mvebu-drivers-5.6-1' of git://git.infradead.org/linux-mvebu: mailbox: armada-37xx-rwtm: convert to devm_platform_ioremap_resource memory: mvebu-devbus: convert to devm_platform_ioremap_resource bus: moxtet: declare moxtet_bus_type as static firmware: turris-mox-rwtm: small white space cleanup Link: https://lore.kernel.org/r/877e1x3nxc.fsf@FE-laptop Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
commit
c7ce73eb01
@ -102,12 +102,11 @@ static int moxtet_match(struct device *dev, struct device_driver *drv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct bus_type moxtet_bus_type = {
|
||||
static struct bus_type moxtet_bus_type = {
|
||||
.name = "moxtet",
|
||||
.dev_groups = moxtet_dev_groups,
|
||||
.match = moxtet_match,
|
||||
};
|
||||
EXPORT_SYMBOL_GPL(moxtet_bus_type);
|
||||
|
||||
int __moxtet_register_driver(struct module *owner,
|
||||
struct moxtet_driver *mdrv)
|
||||
|
@ -197,7 +197,7 @@ static int mox_get_board_info(struct mox_rwtm *rwtm)
|
||||
rwtm->serial_number = reply->status[1];
|
||||
rwtm->serial_number <<= 32;
|
||||
rwtm->serial_number |= reply->status[0];
|
||||
rwtm->board_version = reply->status[2];
|
||||
rwtm->board_version = reply->status[2];
|
||||
rwtm->ram_size = reply->status[3];
|
||||
reply_to_mac_addr(rwtm->mac_address1, reply->status[4],
|
||||
reply->status[5]);
|
||||
|
@ -143,7 +143,6 @@ static const struct mbox_chan_ops a37xx_mbox_ops = {
|
||||
static int armada_37xx_mbox_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct a37xx_mbox *mbox;
|
||||
struct resource *regs;
|
||||
struct mbox_chan *chans;
|
||||
int ret;
|
||||
|
||||
@ -156,9 +155,7 @@ static int armada_37xx_mbox_probe(struct platform_device *pdev)
|
||||
if (!chans)
|
||||
return -ENOMEM;
|
||||
|
||||
regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
|
||||
mbox->base = devm_ioremap_resource(&pdev->dev, regs);
|
||||
mbox->base = devm_platform_ioremap_resource(pdev, 0);
|
||||
if (IS_ERR(mbox->base)) {
|
||||
dev_err(&pdev->dev, "ioremap failed\n");
|
||||
return PTR_ERR(mbox->base);
|
||||
|
@ -267,7 +267,6 @@ static int mvebu_devbus_probe(struct platform_device *pdev)
|
||||
struct devbus_read_params r;
|
||||
struct devbus_write_params w;
|
||||
struct devbus *devbus;
|
||||
struct resource *res;
|
||||
struct clk *clk;
|
||||
unsigned long rate;
|
||||
int err;
|
||||
@ -277,8 +276,7 @@ static int mvebu_devbus_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
|
||||
devbus->dev = dev;
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
devbus->base = devm_ioremap_resource(&pdev->dev, res);
|
||||
devbus->base = devm_platform_ioremap_resource(pdev, 0);
|
||||
if (IS_ERR(devbus->base))
|
||||
return PTR_ERR(devbus->base);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user