]> git.dujemihanovic.xyz Git - u-boot.git/commit
disk: Make the disk partition code work with no specific partition types
authorGabe Black <gabeblack@chromium.org>
Fri, 12 Oct 2012 14:26:08 +0000 (14:26 +0000)
committerTom Rini <trini@ti.com>
Mon, 22 Oct 2012 15:29:55 +0000 (08:29 -0700)
commit0c9c8fb5ec9c2ec20670dce0c5ff0752371893da
treea9f2baf01138067133e57bd2a1d2766f7f88f467
parent24a3fdd64d449c1acd4ccc3636f8bf02e903b6f8
disk: Make the disk partition code work with no specific partition types

Currently, if the disk partition code is compiled with all of the parition
types compiled out, it hits an #error which stops the build. This change
adjusts that file so that those functions will fall through to their defaults
in those cases instead of breaking the build. These functions are needed
because other code calls them, and that code is needed because other config
options are overly broad and bring in support we don't need along with
support we do.

Also reduce repetition of the 6-term #ifdef throughout the file.

Signed-off-by: Gabe Black <gabeblack@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
disk/part.c