xilinx_axienet: Fix devm_ioremap_resource errors

devm_ioremap_resource already print message on error
that's why having another is the driver is useless.

Error message from devm_ioremap_resource:
xilinx_axienet 44a00000.network: can't request region for resource [mem
0x41e00000-0x41e0ffff]

Errors should be taken from PTR_ERR setup by devm_ioremap_resource.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
xilinx_axienet: Free mdio bus in error path

If register_netdev failed also free registered mdio bus.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
spi: xilinx: Use pdev->id instead of pdev->dev.id for the SPI bus number

The Xilinx SPI driver initializes the bus_num field of the SPI master to
pdev->dev.id. pdev->dev.id is always 0 for platform devices which causes bus
number conflicts for the SPI controller when creating multiple device instances
of the driver. Instead use pdev->id which will have the assignt platform device
id. If the device is instantiated via devicetree pdev->id is -1 which will cause
the SPI core to dynamically assign a id (or use the id defined via a alias in
the devicetree).

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
remoteproc: zynq: allow arbitrary firmware bootaddr

Signed-off-by: Kian Karas <kian.karas@cobham.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
remoteproc: zynq: added missing DMA error handling

Two seperate issues is fixed in the driver's probe function with this
patch:
a) If dma_declare_coherent_memory() fails, an error value is returned
   instead of 0 (success).
b) In case of an error, the declared DMA coherent memory is released
   again.

Signed-off-by: Kian Karas <kian.karas@cobham.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
remoteproc: mb: Return correct error instead of 0 - success

Fix incorrect error return value when dma_declare_coherent_memory()
fails.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
remoteproc: mb: Fix error return path

Call dma_release_declared_memory when the driver fails.
Also use ERR_PTR where possible.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
remoteproc: xilinx: Fix IRQ error testing

Use logical OR || instead of bitwise OR assignment.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: xilinx_emacps: Make MTU of 1500 possible

The current driver limits the MTU to  (1500 - hard_header_len). If the kernel
boots the MTU is set to 1500 but if once changed to < 1500 it is not possible
to set it back to 1500 again.

After this fix it is possible to set the MTU back to 1500.

The specific change MTU function is replaced by the standard eth_change_mtu
one.

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@netmodule.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: emacps: Use generic eth_mac_addr instead of private one

Use predefined ethernet function for changing mac address.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by:  Punnaiah Choudary Kalluri <punnaia@xilinx.com>
char: xilinx_hwicap: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
ARM: zynq: cpuidle: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
gpio: zynq: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
iio: adc: xilinx: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
block: systemace: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
dma: xilinx: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
i2c: cadence: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
i2c: i2c-xiic: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: xilinx: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
tty: serial: xuartps: Remove .owner field for driver

There is no need to init .owner field.

Based on the patch from Peter Griffin <peter.griffin@linaro.org>
"mmc: remove .owner field for drivers using module_platform_driver"

This patch removes the superflous .owner field for drivers which
use the module_platform_driver API, as this is overriden in
platform_driver_register anyway."

Signed-off-by: Michal Simek <michal.simek@xilinx.com>