mtd: onenand/samsung: Use managed resource helpers

This patch converts driver probe to use managed resource helpers, which
greatly reduces the line count of remove and error path and makes sure
that correct clean-up is done in case of error.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
mtd: onenand/samsung: Unify resource order for controller variants

Before this patch, the order of memory resources requested by the driver
was controller base as first and OneNAND chip base as second for
S3C64xx/S5PC100 variant and the opposite for S5PC110/S5PV210 variant.

To make this more consistent, this patch swaps the order of resources
for the latter and updates platform code accordingly. As a nice side
effect there is a slight reduction in line count of probe function.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
mtd: onenand/samsung: Make sure that bus clock is enabled

This patch adds basic handling of controller bus clock to make sure that
in device probe it is enabled and device can operate correctly. The
clock is optional and driver behavior is identical as before this patch
if not provided.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
mtd: onenand/samsung: Add device tree support

This patch adds support for instantation using Device Tree.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442: Correct clock properties in onenand node

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: dts: s5p6442-apollo: Add node for OneNAND UBI partition

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
mtd: onenand/samsung: Set name field of mtd_info struct

This patch adds initialization of .name field of mtd_info struct to
avoid printing "(null)" in kernel log messages, such as:

[    1.942519] 1 ofpart partitions found on MTD device (null)
[    1.949708] Creating 1 MTD partitions on "(null)":

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
ARM: configs: Update s5p6442_defconfig

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>