]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
Staging: rts5208: rtsx_card.c: Remove unused function
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 26 Mar 2016 07:22:28 +0000 (12:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Mar 2016 19:45:23 +0000 (12:45 -0700)
The functions double_depth, check_card_fail, check_card_ejected are not
used anywhere in the kernel. So, remove their prototype and definition.
Grepped to find occurences.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rts5208/rtsx_card.c
drivers/staging/rts5208/rtsx_card.h

index 437436f5dbdd33f8d4b8b8b75094190954fe44d6..231833a3045ed5429c248b0a54c1874a90db385a 100644 (file)
@@ -628,11 +628,6 @@ void rtsx_init_cards(struct rtsx_chip *chip)
        }
 }
 
-static inline u8 double_depth(u8 depth)
-{
-       return (depth > 1) ? (depth - 1) : depth;
-}
-
 int switch_ssc_clock(struct rtsx_chip *chip, int clk)
 {
        int retval;
@@ -1184,22 +1179,6 @@ int check_card_wp(struct rtsx_chip *chip, unsigned int lun)
        return 0;
 }
 
-int check_card_fail(struct rtsx_chip *chip, unsigned int lun)
-{
-       if (chip->card_fail & chip->lun2card[lun])
-               return 1;
-
-       return 0;
-}
-
-int check_card_ejected(struct rtsx_chip *chip, unsigned int lun)
-{
-       if (chip->card_ejected & chip->lun2card[lun])
-               return 1;
-
-       return 0;
-}
-
 u8 get_lun_card(struct rtsx_chip *chip, unsigned int lun)
 {
        if ((chip->card_ready & chip->lun2card[lun]) == XD_CARD)
index 8f2cf9a4ec69b52f878174e29d2ecf175a5dd55f..56df9a431d6d5105d6f002eb898aa2c4eb586866 100644 (file)
@@ -1024,8 +1024,6 @@ int detect_card_cd(struct rtsx_chip *chip, int card);
 int check_card_exist(struct rtsx_chip *chip, unsigned int lun);
 int check_card_ready(struct rtsx_chip *chip, unsigned int lun);
 int check_card_wp(struct rtsx_chip *chip, unsigned int lun);
-int check_card_fail(struct rtsx_chip *chip, unsigned int lun);
-int check_card_ejected(struct rtsx_chip *chip, unsigned int lun);
 void eject_card(struct rtsx_chip *chip, unsigned int lun);
 u8 get_lun_card(struct rtsx_chip *chip, unsigned int lun);