mtd: m25p80: remove 'disabled' device check
authorBrian Norris <computersforpeace@gmail.com>
Thu, 24 Oct 2013 02:34:46 +0000 (19:34 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:33:06 +0000 (23:33 -0800)
commitdc525ff4705cee2291b1637a650489aca86ac937
tree54ed778fbdcff2806fd2171aa7d00b33db5020eb
parentddba7c5ad797f4b878f4e177ef300c1f9837cd29
mtd: m25p80: remove 'disabled' device check

It seems like the following commit was never necessary

    commit 5f949137952020214cd167093dd7be448f21c079
    Author: Shaohui Xie <Shaohui.Xie@freescale.com>
    Date:   Fri Oct 14 15:49:00 2011 +0800

        mtd: m25p80: don't probe device which has status of 'disabled'

because it duplicates the code in of_platform_device_create_pdata()
which ensures that 'disabled' nodes are never instantiated.

Also, drop the __maybe_unused.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Reviewed-by: Sourav Poddar <sourav.poddar@ti.com>
Reviewed-by: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: <devicetree@vger.kernel.org>
drivers/mtd/devices/m25p80.c